He gets 40*.9=<<40*.9=36>>36 questions right for the first part.

For the second part, he gets 40*.95=<<40*.95=38>>38 questions right.

So he gets a total of 36+38=<<36+38=74>>74 questions right.

# Answer

74
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
John took a test with 80 questions.  For the first 40 questions, she got 90% right.  For the next 40 questions, she gets 95% right.  How many total questions does she get right?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
74
John took a test with 80 questions.  For the first 40 questions, she got 90% right.  For the next 40 questions, she gets 95% right.  How many total questions does she get right?
train