Let L = the # of hrs for the larger pipe to drain the pool, then L + 30 = the number of hours for the small pipe.
(1/L) + [1/{L + 30)] = 1/20
This equation gives the quadratic L2 - 10L - 600 = 0
One of the roots is extraneous. You should derive the quadratic and solve it to get L = and S = 60
Now why the initial equation? The terms which look like reciprocals are RATES and if you use rate * time = work done, you will see that the time divides out and you are left with the equation I first wrote.