Given: Three numbers in an AP, all positive. Sum is 21. Sum of squares is 155. Common difference is positive.
We do not know what x and y stand for. Will just solve for the three numbers in the AP. Let m=middle number, then since sum=21, m=21/3=7 Let d=common difference. Sum of squares (7-d)^2+7^2+(7+d)^2=155 Expand left-hand side 3*7^2-2d^2=155 d^2=(155-147)/2=4 d=+2 or -2 =+2 (common difference is positive)
Therefore the three numbers of the AP are {7-2,7,7+2}, or {5,7,9}