First assign tasks which have a requirement than assign the rest of the tasks. (GH-22)