Tuesday puzzle
Scenario:
A group of people are in a building, approximately half with red hats, and the other half with green hats. They cannot tell what color hat they are wearing. Their task is to go out into the parking lot, one at a time and line up shoulder to shoulder with the red hats on one side and the green ones on the other. They are not allowed to communicate in any way. How do they accomplish this?