Solution to Triangle