A pattern has 10 blue triangles to every 30 yellow triangles. What is the ratio of yellow triangles to all triangles?