Rule 1.
Who refers to people. That and which refer to groups or things.
Rule 2.
That introduces essential clauses while which introduces nonessential clauses.
Rule 3.
If this, that, these, or those has already introduced an essential clause, you may use which to introduce the next clause, whether it is essential or nonessential.