triangle problem
merge