The given line equation is,
![3x-y=-6](https://img.qammunity.org/2023/formulas/mathematics/college/66lc4fe64swi4od8kktt0acok1i4zlfir5.png)
The given point is ,
![(5,1)](https://img.qammunity.org/2023/formulas/mathematics/college/ian1j2m3ytj24iir9feb2wbstusl5j37gj.png)
The graph will look like this,
let us rewrite the line equtaion as ,
![3x-y+6=0](https://img.qammunity.org/2023/formulas/mathematics/college/ewg700un4pji5s0vl9gjlqtdeoe85ny31l.png)
now, let us compare with the general equation of line,
![Ax+By+C=0](https://img.qammunity.org/2023/formulas/mathematics/high-school/7mdmdacgh93ls5b0gi4w9m1w6gfz77jcty.png)
then, A= 3,B=-1 and c= 6.
let us use the formula,
![\begin{gathered} d=\fracAx+By+c{\sqrt[]{A^2+B^2}} \\ d=\frac3*5+(-1)*1+6{\sqrt[\square]{3^2+(-1)^2}} \\ d=\frac15-1+6{\sqrt[\square]{9+1}} \\ d=\frac{20}{\sqrt[\square]{10}} \\ d=6.32 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/g5ir4s4dd3vk7mx9nnohmfthyok6htl6c4.png)
The shortest distance is 6.32 .