I really hacky way to do this is to swap out the account receiving the payment, every 10th payment. You would still need to clone->edit the stripe or paypal plugins.
Personally I would just accept all payments and do a monthly payout to teachers though. Then you would not have to code anything at all.