Triangle max sum