I've been trying to figure out how my teacher did this work question from a note she gave us, for two hours now and I still can't figure it out. If one of you guys could explain to me what she's doing I'd be real grateful.

Anyways,

A 50N force acting in the direction (1,3,2) moves an object from A(2,3,-1) to B(4,1,3).

AB = distance = (4-2,1-3,3-(-1)

= (2,-2, 4)

Force is 50N along (1,3,2).

F = 50(1/sqrt[14]) (1,3,2) *Really don't understand what's going on here

W = (50/sqrt[14]) (1,3,2)·(2,-2,4)

= (50/sqrt[14]) (2-6+8)

= (50/sqrt[14]) (4)

= (200/sqrt[14])

= (200/14) (sqrt[14])

W = (100/7) (sqrt[14])

So if anyone could explain what's going on step by step it'd really help me.