Answer
$$Density = \frac{mass}{volume}$$
Density is controlled in a fish by controlling its volume. It expands or contracts an air sac in its body.
In a submarine, density is controlled by varying its mass. It can take in or expel water from its ballast tanks.
Work Step by Step
These statements are on page 252.