Let ABCDEFGH be a cube.

a) How many different segments can you form by connecting the vertices of the cube?

b) How many different triangles can you form by connecting 3 of the vertices of the cube?