Solves any triangle.