Guys tell me please, is it possible to reduce these
calculations to one link request, that is, to remove the IF'S? Here I distribute students in groups, in one group there are 3 places( capacity, in the other 2) and here it distributes 25 people in 5 courses and in each course there are 2 groups