Find the velocity after 5.0s and then use that as an initial velocity and an acceleration of -g to find the height and time. Remember that once the engines shut off, the rocket still has a positive velocity and will continue to go up until gravity stops it, so the max height is not where the engines turn off, but when gravity brings its velocity to zero.