Assign teachers to subjects