Read the following passage and solve the questions based on it.
Two ants start climbing a slippery wall together, from the bottom of the wall. Ant A climbs at the rate of 3 inches per minute. Ant B climbs at the rate of 4 inches per minute. However, owing to the fact that the wall is slippery, ant A slips back 1 inch for every 2 inches climbed and ant B slips back 1.5 inches for every 2 inches climbed. Besides this, ant A takes a rest of 1 minute after every 2 minutes and ant B takes a rest of 1 minute after every 3 minutes. (Assume that both ant A and ant B slip continuously while climbing.)
When ant A reaches a height of 12 inches on the wall, how far is ant B behind ant A?