triangle puzzle solution: http://www.yodlecareers.com/puzzles/triangle.html