Getting rid of weight gained on pill??

Боби
Hello, I've been desperately trying to understand how to get rid of the less than 20 pounds I gained in the first 2 months of my pill. I have a pretty good diet, I'm a pretty active person, I started going to the gym, no results since 6months now. Any advice or anyone else sharing the same experience would be greatly appreciated! Ps, I use Yaz, have been on it for 3 years, took a 3 month break and I'm on it again. Weight gain is worse than the first time I started taking it. :( no babies, but no self-confidence. Help!