Gemma and Beth from Middlewich Primary School have sent in a very clear explanation of how they did this problem: