The third answer is the one you want. You have to have an adjustable density. All other things being equal, if the tanks you use for holding just water when filled with water will let the sub sink, because the sub is made of a dense metal like iron or steel.
If on the other hand you fill these tanks with air, the net density will be below one and the sub will rise.
21.5010667479427 I goth this asnswer cause I divided I think that's how u do it
The answer I believe is 3.340kj.
Not 100% sure but I think 40 seconds