1). You are all doing your homework (you, all of you, are doing your homeworks, not a single person doing other things) --> tous works on vous
2). You are doing all your homeworks (and not missing any homework from any subject) --> tous works on devoirs