A triangle has side with the lengths 8x + 6, 5x -5 and -6x + 12. What is the perimeter of the triangle?

If you could tell how you did this, please do. I would like to know so I don't keep making this mistake...