Three friends are talking.
Three people are hanging out.
If three people are hanging out, they are talking.
Friends are people and talking represents hanging out.
If the friends are talking, they are people hanging out.