Two bodies, A and B of equal mass are kept at heights 20 m and 30 m respectively. Calculate the ratio of their potential energies.