Hint for question 4

This problem is similar to the project assignment problem with resources, that we studied in class.