The sci-fi story solution I've come up with is we put everyone into a lottery. Everyone draws a number. Evens get their salary doubled, odds are no longer allowed to work. Everyone find a partner.
Evens will pair up with evens to quadruple their unit income (why attach yourself to a deadweight odd?), with odds becoming a shunned caste largely doomed to death.