How much weight did you gain in your pregnancy

I’m about 290 doctor says she wants me gaining no more than 10 pounds. I’m kinda confused cuz doesn’t the baby grow to 7... plus water and placenta...