Two pipes, A and B, together can fill a tank in 24 minutes. Both the pipes were opened together, but pipe A, which can fill the tank in 40 minutes, was closed 30 minutes before the tank got filled. In how many minutes did the tank get filled?
1
40
2
45
3
42
4
38