upward acceleration of rocket is given as
[tex]a = 12 m/s^2[/tex]
[tex]d = 29 m[/tex]
now the speed of rocket is given as
[tex]v_f^2 - v_i^2 = 2 a d[/tex]
[tex]v_f^2 - 0 = 2*12*29[/tex]
[tex]v_f = 26.4 m/s[/tex]
Here we can use kinematics again as after this the rocket starts free fall so its acceleration is a = 9.8 m/s^2
[tex]v_f^2 - v_i^2 = 2 a d[/tex]
[tex]0 - 26.4^2 = 2*(-9.8)*d[/tex]
[tex]d = 35.5 m[/tex]
so the maximum height achieved by the rocket will be
[tex]H = 35.5 + 29 = 64.51 m[/tex]
now the time of flight of rocket will be given as
first it will reach to height h = 29 m
[tex]v_f - v_i = 2 a d[/tex]
[tex]26.4 - 0 = 2*12 * t[/tex]
[tex]t_1 = 1.1 s[/tex]
now after this it will move under free fall so time to reach the ground is given by
[tex]d = v_i*t + \frac{1}{2} at^2[/tex]
[tex]-29 = 26.4*t - \frac{1}{2}*9.8*t^2[/tex]
[tex]4.9t^2 - 26.4 t - 29 = 0[/tex]
by solving above equation
[tex]t = 6.32 s[/tex]
So total time of motion is
[tex]T = t_1 + t_2 = 6.32 + 1.1 = 7.42 s[/tex]