Let the total capacity of the tank be the least common multiple of the times, which is 24 units. Pipes P, Q and R together fill 24 divided by 24, or 1 unit per hour. In the first 6 hours, they complete 6 units, leaving 18 units for pipes Q and R to fill. Pipes Q and R together fill 18 units in 30 hours, so their combined rate is 18 divided by 30, or 3 divided by 5 units per hour. The rate of pipe P is the total rate minus the rate of Q and R, which is 1 minus 3 divided by 5, or 2 divided by 5 units per hour. Therefore, pipe P alone requires 24 divided by 2 multiplied by 5, giving a total of 60 hours.