Step 1:
Let $A(2,1)$ be the initial point and $B(-5,7)$ be the terminal point.
From the information in the tool box we get
$\overrightarrow{AB}\;\;=(x_2-x_1)\hat{i}+(y_2-y_1)\hat{j}$
$\qquad=(-5-2)\hat{i}+(7-1)\hat{j}$
$\qquad=-7\hat{i}+6\hat{j}$
Step 2:
Hence the vector components are $-7\hat i$ and $6\hat j$ and scalar components are -7 and 6.