Finding ratios from given data