A Fishy Problem

Our aquarium is very dirty, and the fish are worried. Help us use maths and logic to clean up the tank.