Can you help me with this problem:

Find a formula for the distance from the point (X1, Y2)
(The numbers next to X and Y are like X sub 1, Y sub 2...)

Given two points, x,y and X1,Y2, the distance between those points are

distance=sqrt((x-x1)^2 +(y-y2)^2 )

Perhaps from (x1,y1) to (x2,y2) ???

well, start at (x1,y1) and go right to (x2,y1)
you went (x2-x1) in the x direction
then turn straight up (a 90 degree turn up)
and proceed up to (x2,y2)
You went up a distance = (y2-y1)
NOW you have a right triangle and the hypotenuse, d, is the distance you want
d^2 = (x2-x1)^2 + (y2-y1)^2
so in the end
d = sqrt [ (x2-x1)^2 + (y2-y1)^2 ]

To find the formula for the distance from a point (X1, Y2), we need to use the distance formula.

The distance formula is derived from the Pythagorean theorem, which states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides.

In our case, the two sides of the triangle are the vertical distance (Y2 - Y1) and the horizontal distance (X2 - X1).

Using the Pythagorean theorem, we can derive the distance formula as follows:

Distance^2 = (Y2 - Y1)^2 + (X2 - X1)^2

To find the actual distance, we take the square root of both sides:

Distance = sqrt((Y2 - Y1)^2 + (X2 - X1)^2)

So, the formula for the distance from a point (X1, Y2) to another point (X2, Y2) is given by:

Distance = sqrt((Y2 - Y1)^2 + (X2 - X1)^2)

You can now substitute the coordinates of the two points into this formula to calculate the distance.