Question 859437
the terms will be
a,ar,ar^2,ar^3

Condition I

a+ar^2=40
a*(1+r^2)=40
(1+r^2) =40/a

condition II

ar+ar^3=120

ar(1+r^2)=120

ar(40/a) =120

40r =120

r=3

plug r to get a