I want to create an archive and single page for a custom taxonomy for a custom post type

You can achieve it using archive page in this case taxonomy-teacher.php

That page will return all the terms so you need to use “get_queried_object()” which will only show the data of that particular post.

Hope this answers the question.