Learn from a vibrant community of students and enthusiasts,
including olympiad champions, researchers, and professionals.

Possible Lego People

Miles has 4 Lego people in his Lego town. A Lego person consists of exactly 1 set of legs, a torso, and a head. All of these body parts are distinct. Miles' son comes in and separates the Lego people into their individual pieces. How many different sets of 4 Lego people can be created from the pieces?

Details and assumptions

You should not form a Lego person from a head, another head and another head.