There exists multiple factories, each with a certain number of workers.
There are certain jobs that need to be completed by the factories together. Each job can be done by a certain subset of workers.
We need to decide if it is possible to dispatch workers from the factories to be able to do all the jobs according to the following constraints:
- Each factory can dispatch at most one worker
- Each worker can do at most one job
- Each job must be done by at least one worker capable of doing it