can you solve expressions that have the same variables, but are in a different order?

For example:
36jkm - 36mjk

Yes.

Example:
2 * 4 * 5 = 4 * 5 * 2