B1

B2

B3

B4

Surplus quantity

A1

0

400

0

0

600

A2

250

0

350

0

800

A3

50

50

0

200

1200

Shortage quantity

300

500

1000

800