They counted 562 boxes of color pencils and 468 boxes of markers. If each box can hold 8 pencils or markers, how many color pencils and markers do they have altogether