If time of flight of a projectile is 10 seconds. Range is 500 meters. The maximum height attained by it will be

A. 125m
B. 50m
C. 100m
D. 150m