A ball is thrown straight up with a speed of 30 m/s, and air…