Theory
The form 1:n means the first part is one unit; n:1 means the second part is one unit. The order of the quantities must stay unchanged.
For 3:12, divide both parts by 3 to get 1:4. This says 4 of the second quantity for each 1 of the first.
For 12:3 in n:1 form, divide both parts by 3 to get 4:1. To turn 12:3 into 1:n, divide by 12 instead: 1:0.25.
The value of n need not be a whole number. For 2:5 in 1:n form, divide both parts by 2 to get 1:2.5. Keep enough precision for the question.
Do not swap the parts to force a 1. Dividing both parts by the chosen part preserves the original comparison.