The perimeter of a triangle is 41px. If the lengths of two sides are 18px and 7px,represent the length of the third side.

the perimeter is just the sum of the sides . So, you want to find x such that

18 + 7 + x = 41
That is,
x = 41 - (18+7)