Constants to PADI physics questions are always listed on them. It states that every metre of fresh water equates to 0.097 ATM of pressure. 

Multiply that by the given depth (40x0.097=3.88) and add 1 ATM for the air atmosphere and you get the correct answer.