Answer
See below.
Work Step by Step
Let the equation be $ax+by-12=0$
The y-intercept is at $x=0$, so then: $-6b-12=0$, thus $b=-2$.
If $y=mx+b$ is the equation of a line, then $m$ is the slope. So $m=0.5$, thus $a=0.5b=-1$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.