Since, the points A, B are C are collinear then the point A(-5, 1) divides BC in the ratio of m1 : m2.
For x-coordinate using section formula,
x=m1+m2m1x2+m2x1⇒−5=m1+m2m1×4+m2×1⇒−5=m1+m24m1+m2⇒−5m1−5m2=4m1+m2⇒−5m1−4m1=m2+5m2⇒−9m1=6m2⇒m2m1=−96=−32….[Eq 1]
For y-coordinate using section formula,
y=m1+m2m1y2+m2y1⇒1=m1+m2m1×(−2)+m2×p⇒1=m1+m2−2m1+m2p⇒m1+m2=−2m1+m2p⇒m1+2m1=m2p−m2⇒3m1=m2(p−1)⇒m2m1=3p−1….[Eq 2]
Comparing Eq 1 and 2,
⇒−32=3p−1⇒−32=3p−1⇒−2×3=3(p−1)⇒−6=3p−3⇒3p=−3⇒p=−1.
Hence, the value of p = -1.