Can anyone help me to find out to simplify the complex mathematical expression:
eg:

(3 X1+ 5 X2+15)/(X1+3 X2+5)=2

should be outputted as
X1 - X2 = -5

variable may be of any no.