If your guests use Microsoft Teams application with a different Microsoft Tenant (school account) they will need to log out of the application and sign in with the account they invited and the guest will need to choose the tenant that invited them to the Team.