In a 30-60-90 triangle, the rule is:
If opposite of 30° is x,
1) Opposite of 60° is x√3
2) Opposite of 90° is 2x
When we put that into consideration, they gave us the opposite of 90° which is 8. If 8 is 2x, x or opposite of 30° is 4.
For q, we need to multiply s by √3:

So, q is 4√3.