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.
#### 74