Eight pipes were turned on to fill the pool in 36 hours. Then, after 12 hours some of the pipes were turned off, and the rest of the pool was filled in 32 hours. How many pipes were turned off?
Please show your work