Answer:
With the y and x-intercept you have two coordinates (0,y) and (x,0). Now you can find the slope by using M=y2-y1/x2-x1. Once you figured out the slope, you can write the equation: y=Mx+b. 'M' being the slope, 'b' being the y-intercept.
For example, if y-intercept= 5 x-intercept= 3
(0,5) (3,0)
M=0-5/3-0
=-5/3
y=-5/3x+5