Final answer:
The hamstring muscles work together in flexing the thigh and extending the leg.
Step-by-step explanation:
The hamstring muscles work together in flexing the thigh and extending the leg. The hamstrings consist of three muscles: the biceps femoris, semitendinosus, and semimembranosus. These muscles play a role in various activities such as walking, running, and kicking.