Прямой вопрос "How many chairs are there in the room?" преобразуем в косвенный. Вопросительная конструкция "How many chairs are there" меняется на "how many chairs there were".
Ответ: The teacher asks how many chairs there were in the room.