the rules are five students won five different places in five different disciplines - Alex, Bob, John, Deo, Sam.
The language student placed higher than Bob as much as Bob placed higher than the law student.
The IT student placed three spots higher than John.
Alex placed at an even rank and the math student at an odd one.
Sam placed two places below the physicist.
Who placed where and what do they study?
How do I go about accounting for the two unknowns in the conditions?
One method, after a bit of performance improvement:
Result: