If time of flight of a projectile is 10 seconds and range is 500 m. Then what will be the maximum height attained by it? Take g=10 m/s2.