Algorithm for allocating units to customers according to preferences

I am looking for a simple algorithm to assign a real estate unit to the client according to their preferences, as in the following table.

Each client has priorities and we should assign a unit to each client. What is the name of this type of algorithm to cover all scenarios.

enter the description of the image here