solved the triangle puzzle!