Finding ratios from word problems