For comparing two quantities in terms of ratio, the quantities must be expressed in the same unit.
Unit
The quantities compared by ratio must have the same unit. For example, if we have to compare the speed of two persons in terms of ratio, we must take the speed of both the persons in the same ratio.