Sinking an inequality to a graph & checking for correctness

I am trying to create a screen where students input an inequality and its graphed when an action button is pressed. If anyone have any tips, even just for the graphing part (I think I can handle the action button), it would be greatly appriciated. I would also appriciate pointers on how to auto-check answers.

A few points I think might cause problems:

  1. some of the right answers are componed inequalities.
  2. some of the right answers are two seperate inequalities (k<-1, k>2), and I’ve had problems with that before when defining domain for math input, so I added a second math input and an action button to control both of them.

Thanks in advance!