It’s PEMDAS.
Note that multiplication and division go together, meaning whatever you perform, you’ll get the same answer.
The same goes for addition and subtraction. You can do anything first.
Multiplying first-
40•8 = 320
320/4= 80
Dividing first-
8/4=2
40•2=80
See? Both give us the same results :)