please anyone i really need help understanding this. i looked at the cube example in burnside's lemma in wikipedia but im stuck on how they get

and

etc for each conjugacy class...please someone help me understand this i even made my own little cube and octahedron but i still dont understand!!