Your capx is a bit tricky to work with, due to me speaking English, but it looks like your timing is your main issue right now.
If you are trying to compare what is on the screen with the correct answer, you should have an "correct" field to check against each time a new math equation is generated. Then you can just do a straight boolean check against the correct field on clicking the corresponding button.