People make this WAY harder than it has to be.
My truck (F450) has the following max weight ratings
Front axle 6000 lbs
Rear axle 9,000 lbs
Gross Vehicle Weight Rating (GVWR): 14,000 lbs.
Gross Combined Weight Rating (GCWR): 42,000 lbs.
One of my trailers (not an RV, but easy numbers) has the following ratings:
Each axle 10,000lbs
GVWR 25,900
So, I can't exceed ANY single number. Just that simple.
Because I've weighed my truck, I know that just the truck weighs 9500 lbs, with 5300 on the front axle and 4200 on the rear. I can't plop 4800 lbs into the bed, because that will take me over the 14,000 GVWR, even though the rear axle could handle that. So the max weight I can add to my truck is 4500 lbs.
Even though the GCWR indicates I could haul a trailer that weighed 32,500, I cannot. The reason is, even if I had a trailer that could handle that weight, I cannot put enough pin weight (minimum 15% = 4875) on the truck.
So, again, I know I put out a lot of numbers, but again, just don't exceed any single number. BTW, all that math that kids said they'd never use when they were in school, we're using it.