Two pipes A and B can fill a tank in 12 minutes and 15 minutes respectively while a third pipe C can empty the full tank in 20 minutes. All the three pipes are opened in the beginning but pipe C is closed 6 minutes before the tank is filled. In what time will the tank is full?