Okay, here we have this:
1/6 = portion of pool filled per hour by the inlet pipe
1/8 = portion of pool emptied per hour by the drain
So, we are going to consider portion of pool filled per hour if the inlet pipe and drain are both open as 1/x.
Therefore we obtain the following equation:
Now, we need clear x:
Finally we obtain that