I was trying to find one similar to mine but couldn't find one that had 2 values for x and only 1 equation with an x.
$ f(x) = \begin{cases} 2, & x\le -1 \\ ax+b, & -1\lt x \lt 3 \\ -2, & x \ge 3 \\ \end{cases} $
I got a total of 4 equations when x is -1 and x is 3 for $a$ and $b$ respectively.
$b = 2 + a$ and $b = -2 - 3a$
$a = -2 + b$ and $a = \frac{-2-b}{3}$
Do I just set them equal to each other? Editted: I got $a = -1$ and $b = 1$ After setting the $b$ equations equal to each other and solving for a, and then setting the $a$ equations equal to each other and solving for b. Graphed it and it's correct.
Edit: Noticed that I had an equation wrong. Sign should be a plus not a negative to $b = 2 + a$.
Edit: Just graphed it to make sure it was correct; it is.