A student is purchasing snacks for a study group. They have a budget of $50 and need to buy a minimum of 20 items in total. Bags of chips cost $2 each, and candy bars cost $3 each. If the student buys the maximum possible number of candy bars, what is the minimum number of bags of chips they must also purchase?