first part of mathmo question for intersection of circles and lines