To get the perimeter, you add all the sides o the triangles, so the first two sides add up to 40+50 = <<40+50=90>>90 cm.

If the perimeter of the triangle is 160, the remaining side is 160-90 = <<160-90=70>>70 cm.

# Answer

70
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The perimeter of a triangle is 160 cm. If two of the sides are 40 cm and 50 cm, calculate the length of the third side?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
70
The perimeter of a triangle is 160 cm. If two of the sides are 40 cm and 50 cm, calculate the length of the third side?
train