Basically, you have a free choice at which school type you want to register your child. Pupils aged 16-18 should seek advice on which type of school is suitable for them. The state school boards (https://www.km.bayern.de/ministerium/institutionen/schulaemter.html) help with consultation.