Two pipes A and B can fill a cistern in 36 minutes and 48 minutes, respectively. Both the pipes are opened at the same time and pipe B is closed after some time. If the cistern gets filled in half an hour, then after how many minutes was pipe B closed?
A8
B5
C10
D9