Dear Student,
Let stone 1 of mass m is thrown vertically upwards with a velocity v1. The time to reach maximum height will be given by:
The stone 2 is thrown at an angle with the vertical i.e with respect to the horizontal with a velocity v2.
It will follow a projectile path and its time of flight =
Given, the time of flight of both the stones are same. Thus,
The maximum height attained by the stone 2 = h2
Thus,
So, the height attained by both the stones will be the same.
Regards