Two pipes A and B can fill a cistern is 12 minutes and 15 minutes respectively, but a third pipe C can empty the full tank in 6 minutes. A and B are kept open for 5 minutes in the beginning and then C is also opened. In what time will the cistern be emptied ?