what on earth is going on with my Excel?

A1 = 3
B1 =7

formula in C1
=SUM(A1+B1*2)
the result is =17 !

if I enter the formula in C1
=sum(A1+B1/2)
the result is 6.5 !

what on earth is going on here??