Mass m = 5kg
Height from ground to third floor
h = 7m + 3m
g = 10m/s2
Potential energy with respect to the ground
U = mgh = 5kg × 10m/s2 × 10 = 500J
Height from second floor to third floor h = 3m
Potential energy with respect to the second Floor
U = mgh = 5kg × 10m/s × 3 = 150J