Explanation
Five runners P, Q, R, S, T
Five runners finish a race. T came first and S came last.
P finished before Q, and R finished right after P. What's the full finishing order?
Five runners P, Q, R, S, T. Clues: T first, S last, P before Q, R right after P.
Five slots
Draw slots. Place the fixed clues first, the ones that name an exact position.
T goes in slot one, S in slot five.
Five slots; T in 1, S in 5
P–R glued as one block
'Right after' glues two people together. P and R are now one block that moves as a unit.
It fits in slots two and three, or three and four.
P–R glued as one block → fits in 2–3 or 3–4
Q must be after P
Q comes after P. If the block sits in three and four, Q would be in slot two, before P.
That breaks. So P is second, R third, Q fourth.
Q must be after P → only P2, R3, Q4 works
Two cases side by side
When a block can sit in two places, draw both cases side by side, then test each against every clue. Cross out the one that breaks.
Never pick a case because it looks neater.
Two cases side by side; one crossed out
Worked example
Five books stand on a shelf, left to right: White, Red, Blue, Yellow, Green in some order. Blue is in the middle.
Red is immediately left of Blue. Green is at one end.
Yellow is somewhere right of White. Green is not next to Red.
Blue = 3, Red = 2. Case Green = 1: next to Red, breaks.
So Green = 5, and White and Yellow take slots 1 and 4 with Yellow on the right: White 1, Yellow 4. Order: White, Red, Blue, Yellow, Green.