Just understand one thing: the number of people who have not completed one homework is the total number of people who have completed the other two homework. So,
Let's assume that the number of people in the three kinds of homework last night was X, Y and Z respectively.