How should you distribute it evenly?

I would like to distribute it equally to the vehicle according to the number, not the capacity.
However, what constraints should be handled when the same coordinates are ignored?

case1)
-order count : 10
-vehicle count : 3
-order’s coordinates diffrence

result :
(O)
A vehicle amount : 4
B vehicle amount : 3
C vehicle amount : 3

(X)
A vehicle amount : 4
B vehicle amount : 4
C vehicle amount : 2

case2)
-order count : 10
-vhicle count : 2
-order’s same coordinates count : 7

result :
A vehicle amount : 7 (same coordinates)
B vehicle count : 3

please advice me…