Pregnancy weight gain

How much did your doctor recommend gaining during your whole pregnancy vs. How much did you actually gain?

Feeling bad because my doctor recommended not gaining more than 25-30 pounds my whole pregnancy and I’m already up 25 pounds at 27 weeks.