The given equation of the line is
y=mx+cIt is given that the perpendicular from the origin meets the given line at (-1,2).
Therefore, the line joining the points (0,0) and (-1,2) is perpendicular to the given line.
Slope of the line joining (0,0) and (-1,2) = 2−1=2
The slope of the given line is m.
m×−2=−1
m=12
Since point (-1,2) lies on the given line, it satisfies the equation y=mx+c.
Therefore,
2=m(−1)+c
c=2+12=52
Thus, the respective values of m and c are 12 and 52.