As per the question,
Two taps A and B can fill a tank alone in 6 hours and 9 hours respectively.
The portion of the tank that can be filled by
tapA in 1 hour is
The portion of the tank that can be filled by tap B in 1 hour is
Also,
A third tap C alone can empty the same tank in 18 hours.
The portion of the tank that can be emptied by tap C in 1 hour is
If all three taps are opened together, then the portion of the tank that can be filled in 1 hour is as follows,
+==Now, the time taken to fill the tank if three taps are opened together will be,
hours =4.5 hours