If valve 'A' can fill the tank in 15 minutes and valve 'B' can empty the tank in 10 minutes, assuming the tank is full at the initial stage and by keeping both valves open, how long will it take to empty the tank?

Can anybody please explain the logic behind answering this problem? Do you treat the amount of work done per unit time similar when considering filling/emptying the tank?

Thanks

Sabrina