Solving for unknown values in a ratio problem