Oh - you don't know about vector equations ... drat!
##\vec{r}_{beam}## is a vector pointing from the origin to a point on the beam.
##\vec{r}\!_{AC}## is a vector pointing along the beam. ##|\vec{r}\!_{AC}|=|AC|##
lambda is a parameter ... ##0<\lambda<1##
when ##\lambda=0## the equation just gives ##(x,y,z)=(0,0,4)## ... which is point A.
when ##\lambda=1## the equation just gives ##(x,y,z)=(-3,4,-4)## ... which is point C.
when ##\lambda## is in-between, then ##(x,y,z)## is a point on the beam in between A and C.
It will get you your answer very directly.
If you use pythagoras and maybe some trig - then you want to construct the triangle OAC - sketch it out. (point O being the origin.)
Point B is 3m up the hypotenuse... you should be able to find it's z-coordinate from that using similar triangles.
You get the x-y coordinates from where B projects onto the OC side.
You'll see what happens if you sketch the side and overhead views of the beam, and mark out where B is.
There's some geometry tricks to notice:
See on the diagram where the 3m sight-line touches the y-axis?
Call that point E.
Then triangle OCE is a 3-4-5 triangle... so the distance |OC| must be...
So the hypotenuse of OAC must be equal to...Aside:
You know you could always draw a scale diagram and measure?