Answer:
Given that to find the equation of the line that passes through the two points.
![\left(0,6\right),\left(6,18\right)](https://img.qammunity.org/2023/formulas/mathematics/college/4j492fs6d37mqr3heiszx3d1nzulshgnfv.png)
we know that,
Equation of the line that passes through the two points (x1,y1) and (x2,y2) is
![(y-y1)/(y2-y1)=(x-x1)/(x2-x1)](https://img.qammunity.org/2023/formulas/mathematics/college/4ivycubrro0tuhl66cank2sdr3xvbc95id.png)
Substitute the values, x1=0, y1=6, x2=6, y2=18
we get,
![(y-6)/(18-6)=(x-0)/(6-0)](https://img.qammunity.org/2023/formulas/mathematics/college/gfsv3knpujinlspllu2sz8vq2hghh6ix83.png)
![(y-6)/(12)=(x)/(6)](https://img.qammunity.org/2023/formulas/mathematics/college/ux36rkiiuu6fuop2vq1xpwlj53ijlg39t8.png)
![y-6=(12x)/(6)](https://img.qammunity.org/2023/formulas/mathematics/college/uqrh3o880f3on51ax8zc52nbtu9j64rxr4.png)
![y-6=2x](https://img.qammunity.org/2023/formulas/mathematics/college/xx8cdkcwddmwta4v7f5owelycp0lvypljt.png)
![y=2x+6](https://img.qammunity.org/2023/formulas/mathematics/college/fciroxvdfd9n106vpmuha6tnhesayxo008.png)
Answer is: The required equation of a line is y = 2x + 6.