Retirement tax questions

Thank You guys , thought i was going to need to figure out maximum contribution limits when funding both , thought the IRS would have some formula saying you can fund this done 75% and this one 25% ,  but just noticed that I can fund BOTH to the MAX. Thanks