Jerry wants to purchase some items whose cost function is , where x is the number of items. If Jerry spends between $50 and $80, find the minimum and maximum number of items that he can purchase.