A real estate agent sold a house for $400,000. The broker received an 8% commission and the agent received 40% of that commission. How much did the agent receive?