Teacher:The task is to generate the correct answer for a given math problem.
Teacher: Now, understand the problem? Solve this instance: Problem: pipe p can fill a tank in 3 hours , pipe q in 9 hours and pipe r in 18 hours . if all the pipes are open , in how many hours will the tank be filled ?
Student:
2 hours