Checking if ratios are proportional