two pipes can fill a tank in 12 minutes and 20 minutes respectively . both pipes are opened together and after some time the first pipe is closed and the tank is full in totally 10 minutes . for how many minutes was first pipe open ?