To solve this problem it is necessary to apply Boyle's law in which it is specified that

Where,
and
are the initial pressure and volume values
and
are the final pressure volume values
The final pressure here is the atmosphere, then




Pressure at the water is given by,


Using Boyle equation we have,



Therefore the volume of the lungs at the surface is 5.9L