Help me for my elearning project

I am designing Quiz in elearning,for that i use shared objects in the questions,wats my problem is that i hav two two questions the 1st question is in the 5th frame and the second question is in the 10th frame,if we answer the question wrongly it will direct u to the page for the right answer which is in the 3rd frame,and after getting the answer if i click the next button it shuld go the 5th frame to the same question and in the same way if iam in the 10th frame if i answer the question wrongly it shuld direct me to the 3rd frame for right answer and after i get the answer in this case if i click the next button it shuld be forwarded to the 10th frame and not the 5th frame for i hav attended that question already.kindly pls help me in this regard.