How does the 50 30 20 rule work for budgeting?

The rule states that you must spend up to 50% of your after-tax income on needs and obligations that you must have or must meet. The remaining half should be divided between 20% to save and pay off the debt and 30% for everything else you want.