determine the equation of a straight line gradient is 3 and the point (2,1)

remember the point-slope form of a line. The line with gradient m through (h,k) is

y-k = m(x-h)

Now just plug in your numbers.