Rankings were compiled using the 50/30/20 rule, which says no more than 50% of income should be spent on necessities.