Step-by-step explanation:
According to Geometric Progression :
[tex]a(nth) = a1 \times {r}^{n - 1} [/tex]
a(nth) = nth term of the G.P.
a(nth) = nth term of the G.P. a1 = 1st term of G.P.
a(nth) = nth term of the G.P. a1 = 1st term of G.P. r = common ratio
a(nth) = nth term of the G.P. a1 = 1st term of G.P. r = common ration = terms in the G.P.
Now,
[tex]24 = 3 \times {r}^{4 - 1} [/tex]
[tex]r = 2[/tex]
The G.P. Is 3, 6, 12, 24.
Thus, p = 6 and q = 12