How simple maths can sustain our planet