You are solving for the time it takes for 6 large pipes and 6 small pipes to drain a reservoir together.
6 large pipes drain the reservoir in 12 hours.
6 small pipes drain the reservoir in 18 hours.
Calculate the individual drainage rates and then combine them to find the combined rate and time.
Rate of 6 large pipes: RL = 1 reservoir / 12 hours
Rate of 6 small pipes: RS = 1 reservoir / 18 hours
Combined rate: Rtotal = RL + RS
Rtotal = 1/12 + 1/18
Rtotal = 3/36 + 2/36 = 5/36 reservoir/hour
Time T = 1 reservoir / Rtotal
T = 1 / (5/36) = 36/5 hours
T = 7.2 hours