Let's calculate the gravitational potential energy of both objects by using the equation:
![U=mgh](https://img.qammunity.org/2019/formulas/physics/college/z6yetbndxlihjv99fy8l92cvrncjekl1hk.png)
where
m is the mass of the object
g is the gravitational acceleration
h is the height of the object above the ground
For the soccer ball (m=2 kg), the gravitational potential energy is
![U=mgh=(2 kg)(9.81 m/s^2)(1 m)=19.6 J](https://img.qammunity.org/2019/formulas/physics/middle-school/h4p2s4z6vc70dmn1gb2ndzdb2cotxlu89v.png)
While for the basketball (m=1 kg) the gravitational potential energy is
![U=mgh=(1 kg)(9.81 m/s^2)(1 m)=9.8 J](https://img.qammunity.org/2019/formulas/physics/middle-school/l3yzmufacru5qt2vcx24cmea1dr7kid3ov.png)
Therefore, we see that the soccer ball has larger gravitational potential energy than the basketball.