For this case we have that "x" is the variable that represents the smallest number to find. Let and the variable that represents the largest number, then:
The ratio of the smaller to the larger is given as 2:4. Another way to write this is as a fraction: which of course you can see now will reduce to . That's your ratio.