Solving for unknown quantities with ratios