Let point of contact be P(x1,y1).
This point lies on line x1+2y1=−12 ... (i)
Gradient of PO=m1=x1+1y1−1
Gradient of x+2y+12=m2=−21
The two lines are perpendicular ∴m1m2=−1 ⇒(x1+1y1−1)(2−1)=−1 ⇒y1−1=2x1+2 ⇒2x1−y1=−3 ... (ii)
On solving equation (i) and (ii), we get (x1,y1)=(5−18,5−21)