Solution of Triangle: Theory with examples