The problem with that joke is that the saying is not "money is the root of all evil". The actual saying is "the desire for money is the root of all evil".
It's like how "blood is thicker than water" is such a bastardization of "the blood of the covenant is thicker than the water of the womb" that it means the literal opposite of the actual saying.
This his like that joke equation where time = money ends up with women being evil.
Something along the line of:
Women = time x money
If time = money, then:
Women = money²
If money is the root of all evil, then: money squared equals...
Women = evil.
The problem with that joke is that the saying is not "money is the root of all evil". The actual saying is "the desire for money is the root of all evil".
It's like how "blood is thicker than water" is such a bastardization of "the blood of the covenant is thicker than the water of the womb" that it means the literal opposite of the actual saying.