It seems as though the answer depends on which way you look at the problem. But we can't have this kind of flexibility in mathematics; math won't work if you can't be sure of the answer, or if the exact same expression can be calculated so that you can arrive at two or more different answers.
To eliminate this confusion, we have some rules of precedence, established at least as far back as the 1500s, called the "order of operations". The "operations" are addition, subtraction, multiplication, division, exponentiation, and grouping; the "order" of these operations states which operations take precedence (are taken care of) before which other operations.