Determine an equation for the line that satisfies each set of conditions:
-The slope is 3 and the y-intercept is 5.
-The x-intercept is -1 and the y-intercept is 5.