Let the time required to fill the tank by second pipe be x hours.
Then, the time required to fill the tank by first pipe is (x − 10) hours.
Given:
Two pipes together can fill a tank in 12 hours.
According to the question,
Hence, the second pipe will take 30 hours to fill the tank.