Determining if two fractions form a proportion