The equation that gives the potential energy of an object is given by:

where
m is the mass of the object
g is the gravitational acceleration
h is the height above the ground
Using this equation, the potential energy of the first rock is:

while the potential energy of the second rock is:

So, the potential energy of the first rock is twice that of the second rock.