Tank savings problem