If [tex]p[/tex] and [tex]q[/tex] are directly proportional, then they must have a common scalar.
To find [tex]q[/tex] we must first find its scalar. If we let [tex]a[/tex] be the scalar we can form the equation, [tex]ap = q[/tex].
We are given the information that if [tex]q = 7.5[/tex] then [tex]p = 9[/tex]. We can use that in finding the scalar.
[tex]a \times 9 = 7.5 \\ \frac{a \times 9}{9} = \frac{7.5}{9} \\ a = \frac{75}{90} \\ a = \frac{15}{18}[/tex]
Now we can solve for [tex]q[/tex] when [tex]p = 24[/tex] knowing that our scalar is [tex]\frac{15}{18}\\[/tex].
[tex]ap = q \\ \frac{15}{18} \times 24 = q \\ \frac{360}{18} = q \\ 20 = q[/tex]
[tex]q = 20[/tex] when [tex]p = 24[/tex]