I'm sorry if this is a very stupid question but I can't understand how air traffic controllers can choose the right flight level and heading for airplane when they are in the sky or they're approaching the airport to land.

Thank you for the information.
Louis