Determining if given fractions are proportions