Let the equation of line be y=mx+c
Since this line is tangent to the circle x2+y2=5 ∴c=±a1+m2 =±51+m2…(i)
Also, the above line is tangent to the parabola y2=40x ∴c=ma=m10…(ii)
From Eqs. (i) and (ii) ⇒m10=±51+m2 ⇒m220=1+m2 ⇒m4+m2−20=0 ⇒(m2+5)(m2−4)=0 ⇒m2=4,m2=−5 ⇒m=±2 ⇒c=±5 ∴y=±2x±5