From\To

W1

W2

W3

Availability ai

S1

X

14

S2

8

(6)

10 − 6 = 4

S3

X

X

7

(6)

0

Requirement bj

8

10

6 − 6 =0

18