In doing these kinds of conversions it is important to treat the dimensions (m, sec, km, hr) as if they were algebraic constants to be multiplied and/or divided.
Change the seconds to minutes to an hour by multiplying by 60. (60 x45 then times 60 again). this equals 162,000 meters in an hour. Dividing by 1000 changes it to kilometers per hour.