Finding the ratio of quantities