Two pipes A and B can fill a tank in 12 and 24 minutes respectively. If both the pipes are used together, then how long will it take to fill the tank?
a) 9 min
b) 8 min
c) 6 min
d) 4 min