Operations Research/Methods of solving the TP problem

                      W1     W2    W3    W4    Capacity
           
                  F1  19     30    50    10      7
  factories       F2  70     30    40    60      9
                  F3  40      8    70    20     18
               Demand  5      8     7    14