So we know if there are 5 groups/dozens of Monarch butterflies, there are 2 groups/dozens of Queen butterflies. In other words, there are 5 Monarch butterflies for every 2 Queen butterflies.
Then we can turn that into an equation.
[tex]5x = m \\ \\ 2x =q \\ \\ 5x + 2x = m + q[/tex]
From the last equation we wrote we can see that the total number of butterflies in the farm is [tex]7x[/tex].
When we compare the Queen butterflies to total butterflies, we get [tex] \frac{q}{m + q} = \frac{2x}{5x + 2x} = \frac{2x}{7x} = \frac{2}{7} [/tex]
The ratio of Queen butterflies to total butterflies is 2:7.