PCOS and losing weight

Ana
I'm 19 years old and I have gained 50 lbs in the past year due to pcos. I stopped taking metformin and not till recently started taking it again. any tips on how to lose weight with pcos? cause I go to the gym 4-5 times a week and still no results.