Potential energy is defined by formula

here
m = mass
g = acceleration due to gravity
h = height
Now here two different stones are located at same height
while mass of stone A is twice that of stone B
so here we can say potential energy of A is

Similarly potential energy of B is

now if we take the ratio of two energy

so we can say potential energy of stone A is two times the potential energy of B