A little difficult, TB....!!!!
Let a be the amount pumped from tank B into C
And since they all hold the same amount
Amount in B = Amount in A
(150 + n) - a = n - 500
150 - a = -500 add 500, A to both sides
a = 650
And the amount in C = amount in A
500 + 650 = n - 500 add 500 to both sides
1000 + 650 = n
1650 = n
Proof
A contains 1650 - 500 = 1150 after the pumping its amount into C
B contains 150 + 1650 - 650 = 1150 after pumping its amount into C
C contains 500 + 650 = 1150 after receiving oil from A and B
