Taking science and maths out of textbooks and into the real world can help to ignite teenagers’ enthusiasm for the subjects