A third grade class decided to sell boxes of cookies to help raise money for a school trip. Each box has two bags of cookies inside, and each bag holds 14 cookies. If each student needed to sell 4 boxes of cookies, how many cookies did each student need to sell?