Just want to double check

If the question asks to find ratio of speed of car to speed of train given speed of car is 40 km/h and of train is 120km/h
And I put as
Train:car. (Instead of car:train)
120:40
12:4
3:1
Is this incorrect if I put in the reverse order but the title and values are correct . I can only express as Car:train=1:3?
Both can be accepted as correct or donI have to follow the order given in question ?

they wanted car:train

You gave train:car

the numbers are correct, but the ratios are not the same.