PEMDAS has addition before subtraction there for you would do 5+8=13 then 17-13 which equals 4
BODMAS is the shortened way of telling the order
Bracket
Of
Division
Multiplication
Addition
Subtraction
Therefore addition should be done first
17 - 5+8=17-13=4