Simplified algorithm:
As can be seen from the question, a expenditure >; B expenses, so suppose that B should supply A X yuan.
A should spend = A has spent -A has spent more (that is, X)
(24603-( 1 1240-2600-850))/2 = 1 1938+2600-x
x = 6 13 1.5
Complex version algorithm:
Total expenditure: 24,603 yuan; Party A and Party B shall share the expenses equally, and each party shall pay: 24603/2= 1230 1.5 yuan.
Total donation: 1 1240 yuan; Among them, Party A donated 2,600 yuan, Party B donated 850 yuan, and the rest was divided equally: (11240-2600-850)/2 = 3,895 (yuan), and Party A donated 2,600+3,895 = 6,495 (yuan) and Party B donated 850.
Since Party A pays more than Party B, it is only necessary to calculate how much money Party B has paid and should pay at present, and pay the payable money to Party A:12301.5-1425-4745 = 6131.