An elevator starts from rest at the ground floor and moves vertically upward. Its velocity-time graph consists of three segments: a constant acceleration of 2m/s2 for 4s, a constant velocity phase for 10s, and finally a constant deceleration to rest in 2s. Calculate the total height reached by the elevator.