two pipes a and b can fill a tank in 24 minutes and 32 minutes respectively . if both the pipes are opened simultaneously , after how much time should b be closed so that the tank is full in 18 minutes ?