A monometer has two liquids of density p and 3p as shown. Find the pressure of the gas in the monometer.