Yesterday, James sold $29 worth of cookies and chocolate at his store. He sells cookies for $5 a box, and chocolate for $2 a bar. If he sold 7 items yesterday, how many of each item did he sell?