Potential energy of bolt = mgh = 0.3 × 9.8 × 3 = 8.82 J.
Since the bolt does not rebound, the while energy is converted into heat. Since the value of acceleration due to gravity is the same in all inertial systems, the answer will not change even if the elevator is stationary.