A stone is thrown upwards with a speed u from the top of a tower. It reaches the ground with a velocity 3u. The height of the tower is