how did u solve this question:.

Three numbers form a G.P. If the first and third numbers are 5 and 245 respectively, find two possible value for the middle number.

r^2 = 245/5 = 49

r = ±7
so the middle number is ±35