assuming that the room is rectangle and carpet is rectangle
area=legnth times width
legnth=longer than width
12 is longer than 8
12ft=legnth
8ft=width
now convert to yards
1 yard=3 feet
1 foot=1/3 yard
12 ft times 1/3=4yards
8 ft times 1/3=8/3yards
multiply
area=4 tiimes 8/3
area=32/3
area=10 and 2/3 square yards