Accepting bribery is the behavior of national official, collective economic organization personnel or other personnel engaged in official duties, using the convenience of their positions, to solicit or illegally accept other people's property to seek benefits for others.
According to the above definition, which of the following belongs to accepting bribery?
Wang is in charge of the house allocation of an agency. In order to allocate a house to his son who works in the agency, Li gave Wang a gift worth 5,000 yuan. After Wang received the money, he allocated a house to A's son.