Answer:
A submarine uses a specific type of tank called a ballast tank which makes it float and sink on water.
Step-by-step explanation:
The ballast tank compresses the air around it and when released increases density making it sink.
When the tanks are empty, the submarine's mass is decreased making it float to the top.