I'm reviewing for an exam, and having some trouble with reference angles depending on the quadrant they lie in. For example, my book shows the following:

I get the part about subtracting 12pi/6, but what I'm having issues with is deciding whether to add or subtract when the angle is NOT in quadrant IV.
For example:

Based on the book's other example, I would subract 12pi/6 from 31pi/6 until I get a result less than 12pi/6.
31 - 12 = 19
19 - 12 = 7
7pi/6 I believe would lie in Quadrant III, as 2pi is a full rotation, and 1pi is half, and 7pi/6 is a little over 1/2.
My question though, is compared to Quadrant IV, do I know subtract or add 7pi/6 to 12pi/6?
Being Quadrant III I figured I would still subtract, resulting in 12pi/6 - 7pi/6 = 5pi/6 but apparently the correct answer is pi/6???
Can someone please explain this to me?

In quadrant III, subtract $\pi$ from the value.
In quadrant II, subtract the value from $\pi$.
You don't need to subtract anything if it's in quadrant I!
Note: I may have misunderstood the question - I'm not sure if this is right.