On these type of problems, you must always interpret the problem and find out the given information first.
The problem states that the rocket is "Initially rest at ground", this means that
v(distance = 0) = 0
meaning initial velocity is equal to 0.
...
I just realized, what is the question asking for? time of free fall? distance? lol
[EDIT]Oh sorry, I just looked at the title, the max height
We know the constant acceleration 49.0m/s^2, which this particular acceleration lasts for 8 seconds AND we also know the gravity (-9.81m/s^2) constantly acts on the rocket as it propels upwards.
And finally, we know the velocity is equal to 0 when the object reaches its highest point.
For such type of questions, you need two equations to model this problem.
First, use the equation
d = d_0 + v_0 * t + \frac{1}{2}a_r * t^2
a_r = acceleration of rocket - gravitational acceleration
We know the initial velocity and distance is equal to 0, so forget about those quantities.
To calculate the total distance of rocket up until 8 seconds, then find the velocity of the rocket, at the point which it stops accelerating by
v = v_0 + a_r * t
Now you need another equation to model the velocity of the rocket after it stops accelerating. The only acceleration acting upon this rocket is gravity now. Use the equation given before again:
d = d_0 + v_0 * t - \frac{1}{2}a_g * t^2
a_g = 9.81m/s^2
Your initial distance would be the distance traveled by the rocket until it stops accelerating, and you've just calculated the velocity at that instant too.
Now you need to use the information which the velocity is equal to 0 when it is at maximum height.
v = v_0 - gt
Solve for t, plug it into the equation above, then voila. You got the answer