Two pipelines X and Y fill a tank in 7.5 hours and 10 hours respectively, while a third pipeline Z can empty the full tank in 12.5 hours. All the three pipelines are opened in the beginning. Z is closed after 5 hours. In how much time, will the tank be full?
6 hrs