Use unit labels to keep everything straight. You set up multiplication so that you cancel units that you don't want and introduce those that you do...
8yd(36in/yd)=288in
or
8yd(3ft/yd)(12in/ft)=288in
Conversion problems are easy if you remember to cancel units like numbers do...