A tank is connected to three pipes – Pipe A, B and C. Pipe A can fill the tank in 6 hours, B can fill the tank in 8 hours and Pipe C can empty the full tank in 12 hours. How much time will it take to fill the tank completely if all three pipes are working together?