The 5 and 60 are in km/h, so when you multiply the second equation by 5, you are actually multiplying by 5 km/h, which makes the units make sense. You should try to either write down all the units, like for x, y, 5, and 60 in this case, or none at all.