150 Student Limit with multiple teachers

Does each teacher need to have licenses granted to their students or can the students use a license from a different teacher within another class.

Teacher A and Teacher B are using canvas together.

They both have subscriptions to Kami (150 + 150 students)

They teach a combined total of 230 students.

Teacher A creates a Kami assignment and assigns it to all 230 students.

Can the students from teacher B use the teacher B license to access Teacher A’s assigned Kami assignment and not put teacher A over the 150 cap?

We keep running into licensing issues with teachers going over the 150 cap when their rosters are only 140 but they are combined in the distance learning setting for content creation.