Let,
A(a,0),=A(x1,y1)
B(0,a)=B(x2,y2)
Formula to calculate the distance between AB is given by
AB=√(x2−x1)2+(y2−y1)2
=√(0−a)2+(a−0)2
=√a2+a2=√2a
The distance between the points A and B is √2a