Find a vector a with representation given by the directed line segment AB. Draw AB

Find a vector a with representation given by the directed line segment AB. Draw AB and the equivalent representation starting at the origin.

a) A(-2,-2), B(5,3)
b) A(4,0,-2), B(4,2,1)