Let x = number of indigo weights
y = number of green weights
x + y = 9
9x + 2y = 32
Multiply the first equation by -2: -2x -2y = -18
9x + 2y = 32
Add the equations: 7x = 14
So, x = 2 and y = 7