In John 1:35-42, 2 of John’s disciples followed Jesus after John announced the Christ’s presence.
“Andrew, Simon Peter’s brother, was one of these men who heard what John said and then followed Jesus. Andrew went to find his brother, Simon, and told him, “We have found the Messiah” (which means “Christ” ).” John 1:40-41 NLT
I thought though that Jesus saw Peter and Andrew by the sea. Matthew 4:18-20 says
“One day as Jesus was walking along the shore of the Sea of Galilee, he saw two brothers—Simon, also called Peter, and Andrew—throwing a net into the water, for they fished for a living. Jesus called out to them, “Come, follow me, and I will show you how to fish for people!” And they left their nets at once and followed him.” Matthew 4:18-20 NLT
Which one of these happened first? Or which of these is correct; they seem like very different ways that the first disciples of Jesus came to be?