For this, you need to make some admin changes to your dashboard settings of LearnDash and WordPress.
First, let anyone can register for the member.
After that make some changes to the settings of the LearnDash.
Just Customize the settings in the register and make user roles to students and teachers easily.