Ensuring Diverse Ball Selection

In a container containing X red balls and Y blue balls, determine the minimum number of pulls required to guarantee obtaining at least one ball of each color.

Answer Panel