The first step is to write a material balance around the tank:
assuming constant density and constant volume
we find