Gary's been rorting the system, getting both a student allowance and unemployment benefit.
Meaning of rort in English
(Definition of rort from the Cambridge Advanced Learner's Dictionary & Thesaurus © Cambridge University Press)