The Brainliest Answer!
No, Both of them can be correct.
Because potential energy is the work done by the object on bringing it from a state of higher potential energy to zero potential energy.
since the state of higher potential energy of the book is a constant.
The state of zero potential energy for both the boys can be at different places.
For example, the book is kept in the almirah at second floor.
The boy stating its potential energy to be 20J is standing on the ground floor
And the boy stating its potential energy to be 30J standing in a hole dug in the ground or maybe basement.

1 5 1
Both are wrong. Because potential energy (PE) = mgh.

If the height (h)=0{since the book is kept on the shelf}

PE = m x g x 0

= 0