Here are some examples:
* "Working from home gives me the best of both worlds – I can be around my family and still be productive." Here, the person enjoys the benefits of being at home with their family and also the benefits of a structured work environment.
* "Living in a small town gives me the best of both worlds – I have a quiet, peaceful life but I can still easily visit the excitement of the city." This person enjoys the peace of a small town and the excitement of the city, without having to choose one or the other.
Essentially, "best of both worlds" describes a situation where you get to have your cake and eat it too!