Set up budget categories. Earmark your income as it is paid, for your budget categories. Pay your bills and expenses. For debts, pay the minimum on everything. There will be an amount left once everything is budgeted. That's the 'extra'. Then focus on, in order of priority, the following:
- emergency fund
- debt reduction
- fund retirement
- wealth building
So, when your emergency fund is up to an appropriate level (3-6 months of living expenses as a rule of thumb, adjusted according to your comfort level).
Once you have your emergency fund started, budget at least enough toward your 401k to capture any matching offered by your employer.
Then use the snowball plan to pay off your debts. (From what your post says, this does not apply to you, but you may have some small credit card debts taht were not discussed). Earmark the 'extra' for the smallest debt first. When that debt is paid, the 'extra' grows by the minimum payment of the smallest. Thus the snowball grows as you pay off debts.
Once the debts are gone, reward yourself, within reason (and without going into debt).
Now shift your extra into fully funding your retirement savings. Consult a financial advisor to help you plan how to distribute your retirement savings across the available retirement savings types. They can explain why it's good to have some of your retirement savings funded from after tax income. They can help you find the balance between pre- and post-tax funded accounts.
Eventually, you may come to the point where you're putting the max allowed into your tax advantaged retirement accounts. At your age, this is a significant achievement. Anything left over after retirement savings is funded can be used for whatever you want. If you choose wealth building, it can lead to financial independence.
The first two should be a one time thing. You can/should do more than one at a time. The fourth one is optional, and should not be considered until 1 and 2 are completed, and 3 is maxed out.
What you achieve is up to you. Look up FIRE, or Financially independent, retire early. There are groups of folks striving for this. They share advice on frugal living and wealth building strategies. The goal is to save enough capital to live off the passive income of interest and dividends. Most of them seem to have pre-50 target ages. At your age and income, you could hit a pre-40 goal. But it takes commitment and a certain type of personality. Not for me but it might be for you.