We’ve all faced that age-old dilemma – it’s sleepytime but, also, it’s double maths – and now one lad’s found the perfect way to do it