If 7 and 189 are the first and fourth terms of geometric progression respectively, find…