Given data:
* The initial velocity of the rock is 5 m/s.
* The time taken by the rock is 7 seconds.
* The acceleration of the rock is,

Solution:
By the kinematics equation,
The distance traveled by the rock in the vertical direction is,

where y_o is the initial distance of the rock, y is the final distance after the time t, v_o is the initial velocity, and t is the time taken to reach the final distance,
Substituting the known values,

Thus, the distance traveled by the rock in 7 seconds is 275.1 meter.