First we find the velocity and the position of the rocket after 5.0s of positive accleration:
Now we use the data we just found to find the max height (when v=0).