Triangle solution