A guide to solving word problems