Both sentence are correct. Talk with implies a discussion; all the people are talking on an equal basis about a subject. Talk to implies that more that one person has a question or topic in mind, and is guiding the conversation.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.