How do I do this math !

Answer:
The equation of a straight line is always
[tex]y=mx+b[/tex]
The constant m always refers to the slope, and the constant b always refers to the y-intercept.
Simply substitute the numbers in:
[tex]y=-\frac{1}{2}x+3[/tex]
There's your equation!