Answer:
To ensure that you have grabbed 250 balls of one color, you need to use the Pigeonhole Principle. The worst-case scenario is that you grab 249 balls of each color, totaling 996 balls. Therefore, the smallest amount of balls you need to grab is 997, which guarantees that you have grabbed 250 balls of one color.
To explain further, let's consider the worst-case scenario where you grab 249 red balls, 249 green balls, 249 blue balls, and 249 yellow balls. This totals to 996 balls. However, if you grab just one more ball, you will have a total of 997 balls, and since there are only four colors, at least one color will have 250 balls or more. Therefore, by grabbing 997 balls, you can be sure that you have grabbed at least 250 balls of one color.