P - parentheses

E - exponents

M - multiplication

D - division

A - addition

S - subtraction

Pemdas technically works and does not work.

Parentheses and Exponents work:

P - parentheses

E - exponents

But Division with Multiplication, and Addition with Subtraction are equal:

M - multiplication = D - division

A - addition = S - subtraction

Division with Multiplication, and Addition with Subtraction depends where it is. You always go from left to right.

Ex:

2 x 5 ÷ ( 8 - 3 )²

Step 1: Parentheses

2 x 5 ( 8 - 3 ) = 2 x 5 ÷ 5²

Step 2: Exponents

2 x 5 ÷ 5² = 2 x 5 ÷ 25

Step 3: Multiplication OR Division (Since it's left to right, and the multiplication sign comes first, you multiply.)

2 x 5 ÷ 25 = 10 ÷ 25

Step 4: Calculate

10 ÷ 25 = 0.2

1. 6 ÷ 2 ( 1 + 2 )

Step 1: Parentheses

6 ÷ 2 ( 1+ 2 ) = 6 ÷ 2 x 3

Step 2: Since there no exponents, you skip to Multiplication or Divsion. Since it's left to right, and the division sign comes first, you multiply.)

6 ÷ 2 x 3 = 3 x 3

Step 3: Calculate

3 x 3 = 9

Answer: 9

P.S. You can type in the problem in google search and it'll give you the answers.