u would use the slope intercept formula , y = mx + b
lets say u have a slope of 2 and point (1,3)
y = mx + b
slope(m) = 2
(1,3)...x = 1 and y = 3
now we sub into the formula and find b, the y int
3 = 2(1) + b
3 = 2 + b
3 - 2 = b
b = 1
so ur equation of the line is : y = 2x + 1