Answer: 12 hours
Step-by-step explanation:
Let x = time it takes to fill the pool if the inlet pipe and drain pipe are both open
1/6 = portion of pool filled per hour by the inlet pipe
1/12 = portion of pool emptied per hour by the drain
1/x = portion of pool filled per hour if the inlet pipe and drain are both open
Then, 1/6 - 1/12 = 1/x
Multiply by the LCD, 12x, to obtain
2x - x = 12
x = 12 hours