Pipe A fill the tank in one minute = 1/15 part of tank
Pipe B fill the tank in one minute = 1/20 part of tank
Pipes A+B fill the tank in one minute = 1/15 + 1/20 = 7/60 part of tank
Pipes A+B fill the tank in four minutes = 28/60 part of tank
Remaining work = 1-28/60 = 32/60 part of tank
Now time taken by B to fill the tank = 32x15/60 = 8 minutes
Total time taken to fill this tank = 4 + 8 = 12 minutes.