You have 2 points A and B. draw a line XY next to it in any direction, such that A and B do not lie on XY, but A and B should be on the same side on XY. take any point P on the line XY. let the sum of sides AP+BP be some constant K.
Now, the question is, find a point E such that the distance between E and P is equal the K. Else, give the maximum value on the line segment till which this is possible.
Note: the value for ANY point P (which can change)