Quiz game calculation

i need help in creating a quiz game using radio buttons. There are 10 questions, each on a seperate frame, and on the last frame i have a dynamic text box which i want to calculate the total score in. What actionscript code do i need to type in to get this calculation?
Please help
ASAP