Choose the correct answer from the alternatives given.
Two pipes A and B can fill a cistern in 20 minutes and 25 minutes respectively. Both the pipes are opened together, but at the end of 5 minutes the first is turned off. How long does it take to fill the cistern?