Given $A(0,0,2)$ and $B(3,4,1)$ in $Oxyz$. Find the minimum value of $AX+BY$ with $X$ and $Y$ being 2 points lying in $Oxy$, and $XY=1$.
P/s: I have figured out a solution, but I don't think it is the best one possible. The answer is down below.
P/s: If anyone could help me generalize this problem too it'd be great.