As the bus is in motion up the hill. The boy can be thought of as part of the bus.
[tex] P_e = mgh [/tex]
the mass is the total mass of the bus and the passengers. Same with the bus going down the hill. The kinetic energy of the boy becomes part of the bus.