Well,

We know that when x = 0 we have a tangent line with a slope of 2. So:

Similarly we know that when x = 1 we have a tangent line with a slope of -3. So:

You might think we are done, but oh no! There's more:

We also know that at the point x = 0 the tangent line shares a point with the function y, so y = 2x + 1 at x = 0 gives the point (0, 1). Thus

Similarly the tangent line shares a point with the function when x = 1, so y = -3x + 2 gives the point (1, -1):

You should be able to solve this from here.

-Dan