play phryzby with physics

Q. The density of the atmosphere at sea level is 1.29 kg/m³. Assume that it does not change with altitude. Taking g as 9.8 m/s² and the pressure at sea level as 1.01 × 10⁵ Pa, how high would the atmosphere extend, in metres? expects 7.99 × 10³ m