first the multiplication is resolved

3 x 6 = 18

then the addition

18 + 2 = 20

then the subtraction

3 - 20 = - 17