Let the number of minutes taken to empty the cistern be T min.
According to the questions,
T/6 - (T + 5)/12 - (T + 5)/15 = 0
⇒ T/6 - T/12 - 5/12 - T/12 - T/12 - T/15 = 0
⇒ T/6 - T/12 - T/15 = 5/12 + 5/15
⇒ (10T - 5T - 4T)/ 60 = (25 + 20)/60
⇒ T/60 = 45/60
⇒ T = 45 min.