Application of ratios to solve a problem