Set the pipe times, then drag the Time slider
Take the tank as LCM of the times units. Then each pipe does a whole number of units per hour.
A filling pipe adds units, an emptying pipe takes them away:
Time and work problems use the same idea: workers are pipes, the job is the tank.
Turn a classroom bucket into the tank: two mugs pour, one cup scoops out. Time it, then compare with the LCM method.