He earned $150k, and got legal aid. She paid her lawyer with a bank loan

It’s meant to be for those who can’t afford a lawyer, so why are people earning over $150,000 getting legal aid to fight court cases?