Good solutions were submitted by Hyeyoun Chung, age 15, St Paul's Girls' School, London, Michal Szymanski age 16, Daramalan College, Ling Xiang Ning, Allan, age 13, Raffles Institution, Singapore.

This is Hyeyoun's solution.