Finding fractions from given data