Concept used — the section formula
If a point P(x,y) divides the line segment joining A(x1,y1) and B(x2,y2) internally in the ratio m1:m2 (that is, AP:PB=m1:m2), then
P(x,y)=(m1+m2m1x2+m2x1, m1+m2m1y2+m2y1)
Notice the cross-pairing: m1 multiplies the coordinates of the far end B, and m2 multiplies those of A.
Here the dividing point C is known and an end point B is unknown, so the formula is used in reverse: substitute what is known and solve for x and y.
Step 1 — Name the points and the ratio. Take A(2,5) as (x1,y1) and B(x,y) as (x2,y2). C(−1,2) divides AB in the ratio AC:CB=m1:m2=3:4.
Step 2 — Equate the x-coordinates.
−1=m1+m2m1x2+m2x1=3+43×x+4×2=73x+8
3x+8=−7⇒3x=−15⇒x=−5
Step 3 — Equate the y-coordinates.
2=m1+m2m1y2+m2y1=3+43×y+4×5=73y+20
3y+20=14⇒3y=−6⇒y=−2
Answer: B(−5, −2).

C divides AB so that AC is 3 parts and CB is 4 parts; B is the unknown end.
Check: AC=(−1−2)2+(2−5)2=18=32 and CB=(−5+1)2+(−2−2)2=32=42, so AC:CB=3:4 ✓.