This solution calculates the time pipe R takes alone to fill a tank, using rates and work done.
Pipe P can fill $\frac{2}{3}$ part of a tank in 16 hours, and pipe Q can fill $\frac{5}{6}$ part of the same tank in 20 hours. Both P and Q were kept open for 2 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 8 hours. Pipes P, Q and R together can fill the empty tank in:
Pipe P can fill $\frac{2}{3}$ part of a tank in 24 hours, and pipe Q can fill $\frac{2}{3}$ part of the same tank in 16 hours. Both P and Q were kept open for 4 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 5 hours. Pipes P, Q and R together can fill the empty tank in:
Pipe P can fill $\frac{3}{8}$ part of a tank in 21 hours and pipe Q can fill $\frac{2}{7}$ part of the same tank in 16 hours. Both P and Q were kept open for 2 hours, then both were closed. Pipe R alone was then opened and it emptied the water in the tank in 3 hours. Pipes P, Q and R together can fill the empty tank in: