.
1. The Mars atmosphere can hardly be called "the air".
See this description of the Mars atmosphere from https://www.space.com/16903-mars-atmosphere-climate-weather.html :
"The atmosphere of Mars is about 100 times thinner than Earth's, and it is 95 percent carbon dioxide. Here's a breakdown of its composition:
Carbon dioxide: 95.32 percent
Nitrogen: 2.7 percent
Argon: 1.6 percent
Oxygen: 0.13 percent
Carbon monoxide: 0.08 percent
Also, minor amounts of: water, nitrogen oxide, neon, hydrogen-deuterium-oxygen, krypton and xenon."
2. The condition does not say if the ball was thrown vertically up or down, or either other way.
The equation given also does not shed light on this subject.
3. In the future, do not write equations without using signs. Please. Thanks.
4. Still, if your equation is
h(t) = -6*t^2 + 30t + 36, (which means that the ball was thrown vertically up)
then, to answer your question, simply substitute t= 3 into the right side and calculate h(t).