Oh THX
You can solve this one way easier.
X+Y=6
XY=3
|x-y|=?
(x-y)^2=(x+y)^2 -4xy
(x-y)^2=36-12
(x-y)^2=24
x-y = + - sqr rt 24
Thanks