z axis is : $x=0=y$
$x + B(y) = 0$ --> (1)
$x+y+2z-3+ A (2x+3y+4z+4 ) = 0$ --> (2)
These are two planes constructed through the two lines. We find the parallel planes so that it is easier to calculate the distance after that. Therefore, for planes to be parallel :
$\frac{1+2A}{1} $ = $\frac{1+3A}{B}$ = $\frac{2+4A}{0}$
But now no values of A,B will satisfy this. How to proceed further ?
$${1+2A\over 1}={1+3A\over B}={1+4A\over 0}$$ Has the solution $$A=-{1\over 4},B={1/4\over 1/2}={1\over 2}$$ As far as 3d geometry is concerned!