From the principle of flotation, a body sinks in a fluid until it displace a…