Concept used — equidistant points
"A is equidistant from B and C" means AB=AC. Squaring both sides gives AB2=AC2, and the squared distance formula
PQ2=(x2−x1)2+(y2−y1)2
turns this into an equation in p.
Step 1 — Name the points. A(0,2), B(3,p), C(p,5).
Step 2 — Write AB2. Take A(0,2) as (x1,y1) and B(3,p) as (x2,y2).
AB2=(3−0)2+(p−2)2=9+p2−4p+4=p2−4p+13
Step 3 — Write AC2. Take A(0,2) as (x1,y1) and C(p,5) as (x2,y2).
AC2=(p−0)2+(5−2)2=p2+9
Step 4 — Equate and solve.
p2−4p+13=p2+9
Cancel p2 from both sides:
−4p+13=9⇒−4p=9−13=−4⇒p=1
Answer: p=1.
Note: check — with p=1 the points are B(3,1) and C(1,5), and
AB2=32+(1−2)2=9+1=10,AC2=12+(5−2)2=1+9=10
so AB=AC=10 units ✓.