If 3,p,q,24 are consecutive terms of an exponential sequence, find the values of p and q

Given that 3, p, q, 24 are consecutive terms of an exponential sequence, we can set up the following equations:

p = 3*r (where r is the common ratio of the exponential sequence)
q = p*r
24 = q*r

Substitute the value of p from the first equation into the second equation:

q = (3*r)*r = 3*r^2

Substitute the value of q from the second equation into the third equation:

24 = (3*r^2)*r
24 = 3*r^3
r^3 = 8
r = 2

Now, we can substitute the value of r back into the equations to find the values of p and q:

p = 3*2 = 6
q = 6*2 = 12

Therefore, the values of p and q are p = 6 and q = 12.