The piano is at a height of 5.8 m from the ground when the cup strikes it.
The piano travels with a constant speed v of 0.62 m/s for a time t of 3.5 s. The distance d traveled by the piano during this time is given by,

The piano is at a height of 3.6 m from the ground, before it ascends with a constant speed.
Therefore, the height h of the piano from the ground is given by,

The height of the piano from the ground is 5.8 m.