An fortunately that's not how running an educational institution works. a) HE/FE institutions are not-for-profit - they just seek to maintain an operating surplus, b) they are highly regulated and constrained and can't just hive off bits that don't make a profit c) most teaching departments run at an effective loss, which is covered by central block grants at an institution level