let the pole be at the origin of the xy plane, represented by the vector

let the vector represent a sun ray vector from the top of the pole to the ground.

... the resulting shadow vector lying on the xy plane.

since the shadow vector lies on the ground, ...

<0,0,8> + <20,12,-8> = <20,12,0>

magnitude of the shadow vector ...