Nevaeh and Trishant are selling candy for a fundraiser. Nevaeh sold 13 boxes of plain chocolate bars and 14 boxed of mixed flavored chocolate bars for a total of $316. Trishant sold 4 boxes of plain chocolate bars and 14 boxed of mixed flavored chocolate bars for a total of $262. What was the cost for a box of each type of bars?