Consider the upward direction of motion as positive and downward direction of motion as negative.
a = acceleration due to gravity in downward direction = - 9.8
![(m )/(s^(2))](https://img.qammunity.org/2020/formulas/physics/middle-school/tvrahr3hsxmcv64wyxojmta9tewenfqk6a.png)
v₀ = initial velocity of rock in upward direction = ?
v = final velocity of rock at the highest point = 0
![(m )/(s)](https://img.qammunity.org/2020/formulas/physics/middle-school/d127kpentwd8ds46w1gudll91dt0lzeuku.png)
t = time to reach the maximum height = 4.2 sec
Using the kinematics equation
v = v₀ + a t
inserting the values
0 = v₀ + (- 9.8) (4.2)
v₀ = 41.2
![(m )/(s)](https://img.qammunity.org/2020/formulas/physics/middle-school/d127kpentwd8ds46w1gudll91dt0lzeuku.png)