Here's an example of what I have:
The radius of both circles is 50. Each circle is moved in by 10, so the distance between the two center points is 80.
As you can see one of the circles end at 90 degrees and one ends at 270 degrees.
How can I figure out what degree the 2 lines intersect on, that way I know when to cut off the lines?
Here's how my code looks, just incase it's of any help:
c.beginPath();
c.arc(160,250,50,0,(Math.PI/180)*-225,true);
c.lineTo(200,350);
c.lineTo(260,300);
c.arc(240,250,50,(Math.PI/180)*45,(Math.PI/180)*180,true);
c.stroke();
The arcs work like this: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc

$$ y=\cos^{-1}(40/50)\approx36.8698976458\deg\approx0.643501108793\operatorname{rad} $$ This is a 3-4-5 triangle, so $ x=30 $