For a software person, you should heal a "disease" of the many if you want to maximise money, as they scale better than almost anything else. But for a doctor, who can only treat a limited number of patients, you should spend your time treating rich patients if you want to maximise money.