I'm solving the Maxwell Garnett equation with SymPy:
solveset(Eq((e-m)/(e+2*m) = n*(a-m)/(a+2*m)), m)
Is it possible to simplify the solution by grouping similar terms together like Mathematica does?
The closest recipe I've found is SymPy: How to collect multi-variable terms?, but it is not directly applicable here.
I've progressed as far as:
But how do I get to the even more compact form?

