Determining if two fractions are proportions