According to Matthew 4:12, Mark 1:14and Luke 3:20, John the Baptist was imprisoned before Jesus chose Simon and Andrew as disciples. John 1:35 says he was with them at the time.
According to Matthew chapter 4, Mark chapter 1, and Luke chapter 4, Jesus went into the wilderness straight after his baptism for 40 days. According to John 1:35, one day after baptism (compare John 1:29), he was choosing Andrew and Simon as disciples, at John 1:43, two days after baptism, he was choosing Philip, and at John 2:1, three days after baptism, he was at the wedding in Cana.