In order to calculate the maximum height, let's use Torricelli's equation:
Where V is the final velocity, Vo is the initial velocity, a is the acceleration and d is the distance traveled.
At the maximum height, the velocity is zero, so we have:
Since the initial height is 2 meters, the maximum height is 7.1 meters.