
Arturo O. answered 10/11/19
Experienced Physics Teacher for Physics Tutoring
U = potential energy
U = mgh
Since g is the same for both, all you need to do is find and compare mh for both books.
Book 1:
m1h1 = (2 kg)(5 m) = 10 kg-m
Book 2:
m2h2 = (5 kg)(2 m) = 10 kg-m
They have the same potential energy.