Depends on implementation- question is incomplete.
Assuming a counting semaphore is used to indicate the availability of a space in the room we can do as follows:
Semaphore value x- denote x person can enter the room.
So, initial value of semaphore here is 20 and when 9 person are inside, it becomes $20-9=11.$