How do I check for a correct answer?

Hi - I’m writing a flash MX game for my math students so they can practice writing an equation of a line. I need to know how to their imput to tell whether it’s right or not. I’m setting the equation for the line up with blanks for them to put the slope and the y intercept, so I want to give separate feedback if they get one right and not the other. (For those of you who don’t remember, I’m talking about this kind of equation y = mx + b, where m = slope and b = the y-intercept

Little help?