Solution:
Pressure, P = 42 bar gauge = 4200 kPa (given)
Now, If the submarine is at a height 'h' from the ocean then:
[tex]P_{P} = P_{Q}[/tex] + [tex]\rho[/tex] g h (1)
where,
[tex]P_{P}[/tex] = pressure at point P(depth)
[tex]P_{Q}[/tex] = atmospheric pressure
[tex]\rho[/tex] = density of water = 1000 kg/[tex]m^{3}[/tex]
h = height of submarine from the depth of ocean
Now, using eqn (1):
[tex]P_{P} - P_{Q}[/tex] = 1000[tex]\times 9.8\times h[/tex]
4200[tex]\times 10^{3}[/tex] = 1000[tex]\times 9.8\times h[/tex]
h = 428.13 m