Best of both worlds

When somebody has an opportunity to get the best out of two different situations

Examples

I love swimming and also it is important to me to be a part of the team. So, I get the best of two worlds.