I am trying to find voltages in a circuit using KVL and KCL and have got these equations:

1. (x-v)A + (x)B + (x-y)C = 0

2. (y-v)D + (y-x)C + (y)E = 0

I need to re-arrange them to get the form:

1. x(A+B+B) + y(-C) = vA

2. x(-C) + y(D+C+E) = vD

But don't know the process.

I can get the firtst 2 equations from the beginning problem, and given the 2 re-arranged equations I can solve it, but i'm missing a step.Can anyone help?