In this type of case, there is a convention which follows the order of operation for computer operations which says that you do the multiplication & division and then the addition & subtraction.

So, in this case you would multiply 5x10 and then add 2 for an answer of 52.

That type of uncertainty is why you should always use parenthesis when writing mathematical formulas so there is no confusion for anyone!