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

24 = 3*2^3

so
p = 3*2
q = 3*2^2