Triplets that sum up to a value