Quiz maze

Quiz maze???? I am making a maze game for maths and it will have random questions that you need to answer to progress further. It is saying that the script is wrong but i don't know where. Here are the scripts i'm using: Script 1:

question[0] = 'Work out the value of X # 5(X+4)-2(X-1)=43'; question[1] = 'Work out the value of X # 5(X+5)+3=13'; answer[0] = 7; answer[1] = -3;

Script2:

var ind,val; ind = floor(random(10)); val = get_integer(question[ind],0); if (val == answer[ind]) show_message('That is the correct answer.') else show_message('That answer is WRONG!');

Please help me