I think this is the solution. I don't think you are supposed to use PEMDAS.
4.9m questions
6.3m answers