Two pipes A and B can independently fill a cistern in 12 minutes and 18 minutes respectively. A third pipe C can empty the same cistern when full in 9 minutes. If all three pipes A, B, and C are opened together, in how many minutes will the cistern be empty?