Help with math table

Thank you. It was a little annoying as i was using template but once you mentioned sum i understood what i did wrong.
image