what is the formula or equation for converting units?

Quantity in new units =

(quantity in old units) x (# of new units per old unit)

Example:

9 feet = 3 yards x (3 feet/yard)