Let the total work be 12 units, where A fills 4 units per hour, B fills 3 units per hour, and C empties 12 units per hour. Between 3 pm and 4 pm, A fills 4 units, and between 4 pm and 5 pm, A and B together add 7 units, bringing the total to 11 units by 5 pm. From 5 pm onwards, the net rate is 4 plus 3 minus 12, giving a loss of 5 units per hour, so after 1 hour the tank has 6 units, and after another hour it has 1 unit. The final unit is emptied at a net rate of 9 units per hour, since A and B close while C continues emptying, taking 1/9 of an hour, which equals 6 minutes and 40 seconds; the tank is completely empty at exactly 7:12 pm.