added the else if statement which is…else if oYR > 6 && oYR < 12 can be in room with 2 people.