The first term of a geometric progression (G.P) is 3 and the 5th term is…