You seem to have started with what they wrote, not with the information in the problem; that is the answer to the problem, apart from simplification, so it can't be where you are having trouble!
Then you wrote a single equation, in vector form and then in rectangular form (though you dropped the radical), not for the
line, but for a
plane normal to it. That makes me wonder whether you know what the equation
s of a line look like in the first place, which could be the source of your difficulty. A plane has a single equation; a line requires two.
Please look again (if you did at all) at the link I gave,
https://tutorial.math.lamar.edu/classes/calciii/eqnsoflines.aspx. At the bottom, it gives the form we need: [MATH]\frac{x−x_0}{a}=\frac{y−y_0}{b}=\frac{z−z_0}{c}[/MATH]. Observe that this is two equations, not one.
Since your line has to go through the origin, [MATH](0,0,0)[/MATH], this becomes [MATH]\frac{x}{a}=\frac{y}{b}=\frac{z}{c}[/MATH]. And a, b, c are the components of a vector in the direction of the line, such as the direction cosines (called l, m, and n in your book).
I'll finish for you, doing the important step they left out and which is most likely confusing you: Given that [MATH]l=\frac{\sqrt{2}}{2}[/MATH], [MATH]m=\frac{1}{2}[/MATH], and [MATH]n=\frac{1}{2}[/MATH], the equation becomes [MATH]\frac{x}{\frac{\sqrt{2}}{2}}=\frac{y}{\frac{1}{2}}=\frac{z}{\frac{1}{2}}[/MATH], which simplifies to the equation they wrote.
Does that make it clearer?