Step-by-step explanation:
The gravitational potential energy of an object is given by GPE=mgh
where m is the mass of the object, g is the gravitational field strength (9.81 m/s² on earth) and h the height it is lifted at above the GPE reference ground.
Mass 1 has a GPE=m¹gh=(2)(9.81)(10)=196.2 Joule
Mass 2 has a GPE=m²gh=(4)(9.81)(10)=392.4 Joule
Object 2 has more potential energy and it makes sense since it's heavier
Hope this helps :))