I'll show you a little trick we do in my engineering subject to convert units.
Start off with something in

. Write it out as a fraction as so,

If we wanted to convert from km to m, we use unity brackets to multiply the units by effectively 1. We notice that there are 1000m in 1km. Hence we write it as;

This eliminates the km unit. We know that there are 3600s into 1 hour so we can write

Hence

Sometimes though you'll get confused on which part of the fraction to put which unit. Basically if the unit you want to eliminate, such as km is on the top, then first write 1km on the bottom, then 1000m on the top. It will be very useful in other problems you do so you get less confused and make less mistakes