Applying ratios to solve problems