In the hydraulic press (like raising the piano with a pulley system) which depends on Pascal principle, the pressure (P) on the left side should equal to the pressure in the right side in the ideal processes.
then

when

note: using the capital and small symbols to different between the right and left sides
then

also, under the save of the energy, the work done on the left side equals to the work done on the right side

when
where y is the distance which the body got up or down


thus
