Making equations of lines 1, 2, 5, and 6 of the table, then using algebra to solve for x, y, and z, gives these approximate proportions:
57½% Democrats (23 out of 40);
30% Republicans (12 out of 40);
12½% Independents (5 out of 40).
Here are the algebraic calculations, just for reference.
9x + 13y + 17z = 12
48x + 8y + 17z = 30
432x + 624y + 816z = 576
432x + 72y + 153z = 270
552y + 663z = 306
8x + 68y + 34z = 31
27x + 5y + 18z = 17
216x + 1836y + 918z = 837
216x + 40y + 144z = 136
1796y + 774z = 701
1190748y + 513162z = 464763
427248y + 513162z = 236844
763500y = 227919
y = 0.29852, or 29.852 %
48x + 8y + 17z = 30
27x + 5y + 18z = 17
864x + 144y + 306z = 540
459x + 85y + 306z = 289
405x + 59y = 251
8x + 68y + 34z = 31
18x + 26y + 34z = 24 (double 9x + 13y + 17z = 12)
-10x + 42y = 7
17010x + 2478y = 10542
-590x + 2478y = 413
17600x = 10129
So x = 0.57551, or 57.551%,
y = 0.29852, or 29.852%, and
z = 1 – 0.57551 – 0.29852 = 0.12597, or 12.597%.
I verified these values for x, y, and z in the original equations. Keep in mind that there were only 2 significant digits in 12
of the 16 numbers and only 1 significant digit in the other 4, resulting in precision varying from ±0.735% to ±10%.
48x + 8y + 17z = 30
27.62448 + 2.38816 + 2.14149 = 32.15413
27x + 5y + 18z = 17
15.53877 + 1.49260 + 2.26746 = 19.29883
9x + 13y + 17z = 12
5.17959 + 3.88076 + 2.14149 = 11.20184
8x + 68y + 34z = 31
4.60408 + 20.29936 + 4.28298 = 29.18642
You’re welcome.