The answer appears to be that Matthew and Luke each had two sources in common: the Gospel of Mark and another gospel, now lost, a collection of sayings known only as Q. Q stands for "Quelle," the German word for source.