Barbie spent $166 on clothes. She bought some shirts that cost $14 each and some pants that cost $22 each. She bought a total of 9 items. Select the system of equations to determine how many shirts and pants Barbie purchased. Let x represent the number of shirts and y represent the number of pants.

x + y = 166

14x + 22y = 9

x + y = 166, , 14x + 22y = 9,

x + y = 9

22x + 14y = 166

x + y = 9, , 22x + 14y = 166,

x + y = 9

14x + 22y = 166

x + y = 9, , 14x + 22y = 166,

x + y = 36

166x + 9y=14x + 22y