they must have been written either by apostles themselves, who were eyewitnesses to what they wrote about, or by followers of apostles. So in the case of Mark and Luke, while they weren’t among the twelve disciples, early tradition has it that Mark was a helper of Peter, and Luke was an associate of Paul.

