There are two pipes leading to a tank. If pipe A alone is opened, the tank will be filled in 15 minutes. If pipe B alone is opened, the tank will be filled in 10 minutes. Both pipes were opened together. After 2 minutes, pipe B was closed. How long should pipe A be left open to fill the rest of the tank?