Here is one solution to the Triangle Sums problem:

Screen Shot 2017-08-18 at 3.35.32 PM.png