By using PEMDAS rule.
We can solve the problems involving equations that contain addition, subtraction, multiplication, or division by using PEMDAS rule.
PEMDAS is an acronym for the words parenthesis, exponents, multiplication, division, addition, subtraction.
i.e. while solving an algebraic expression we have to give preference to the parenthesis and then to exponent term and then we have to simplify the multiplication operation and then division operation is preferred and at last subtraction and addition are treated equally that is we can apply any of them.