Work done = force in the direction of displacement multiplied by displacement
Triangle law of vector addition states that when two vectors are represented by two sides of a triangle in magnitude and direction taken in same order then third side of that triangle represents in magnitude and direction the resultant of the vectors.

Taken in same order mean tail of Vector B must coincide with head of vector A as shown in image.