The perimeter of a triangle is the sum of the lengths of its three sides: P = a + b + c.