Relationship of side lengths and angles of a triangle