How to solve the area of a triangle