The number n-4,n+2 and 3n+1 are in GP.find the two possible value of the common ratio

Since the terms of a GP have a common ratio r,

(n+2)/(n-4) = (3n+1)/(n+2)

If you solve for n, you will get two possible values. Use those to determine the appropriate values of r.