It is determined based on the evidence provided being enough/showing enough. Meaning not fighting, sharing items, sharing an island etc. If one is obviously afk, it may not be enough since we can't know that one user wanted to team.
If two decide to fight one person and occasionally swing at...