Solved triangle problem