To obtain the equation of a straight line graph, we will apply the formula:
y = mx + c
where m is the slope and c is the intercept of the line
From the question,
for points (1,4); m=3
x= 1, y =4, m= 3
substituting the values into the equation (y = mx + c), we will obtain the value of the intercept (c)
4 = 3 x 1 + c
4 = 3 + c
c = 4 - 3
c=1
substituting the values of c and m into the equation of a straight line
y = 3x + 1