an anyone please help me to derive the
algorithm to simplifying linear equation?

For example, I have one eqn like, (3 X1+ 4
X2 +5) /5 + (3 X1-7 X2 - 6)/6 = 2

it should give 23 X1 - 11 X2 -60 =0;

In general it should outputted complex
equations in form of A X1 + B X2 +.... + c =0

actually i am trying to develop an apllication which generates equation in complex mode like my examp but variables are not less than 10 and i need to simplify it to feed it in next module which takes eqn only as A X1 + B X2 +.... + c =0

thanks in advance.