Determining if two equations are proportions