It will take 30 hours to fill the pool if both pipes were accidentally left open
<u>Solution:</u>
Given, One pipe can fill a swimming pool in 10 hours,
While another pipe can empty the pool in 15 hours.
We have to find how long would it take to fill the pool if both pipes were accidentally left open?
Now, work done by 1st pipe in 1 hour 
And, work done by 2nd pipe in 1 hour 
Here negative sign represents "empties the pipe"
<em> Together work done in 1 hour = work done by 1st pipe in 1 hour + work done by 2nd pipe in 1 hour</em>

Now, time required to fill tank together 
Hence, together they will fill the tank in 30 hours.