500
A jar of candy is on the counter. Except for 16 pieces, all are red. Except for 16 pieces all are blue. Except for 16 pieces all are green. Except for 18 pieces all are yellow. Write a system of equations to find how many [pieces of each color there are.
6 red, 6 blue, 6 green, and 4 yellow