SOLUTION
The first thing is to find the length of each side of the rectangle
note that the length of the opposite side are equal
![\begin{gathered} |AB|=|DC| \\ |AD|=|BC| \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/utjbl5phgaf54hpmvwtq8tstuwpacje3h7.png)
|AB| is the horizontal line which falls in the coordinate of x
where
![\begin{gathered} x_1=-2\text{ for A} \\ x_2=8\text{ for B} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/w18tatnck2c7ky5f6fxni9oyk9wlbiqv1f.png)
Then the length of the |AB| is
![|8-(-2)|=|8+2|=10](https://img.qammunity.org/2023/formulas/mathematics/college/htg35qjbwn37cnhjg6xh5qsd1almz730ka.png)
|AD| is the vertical line that falls on the coordinate of y
where
![\begin{gathered} y_1=-6\text{ for point D} \\ y_2=2\text{ for point A} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ttlnfygydl4n66g67it3czn4nwfh3m90hx.png)
Then the length of the line |AD| is
![|-6-2|=|-8|=8](https://img.qammunity.org/2023/formulas/mathematics/college/72kwukncpp0z9dtiuedbxzul6em0qozide.png)
We can see that the longest side is side is |AB| which is 10
Therefore the fence will be 10 units long
The last option is correct(D)