Write an equation to find the value of X if the perimeter of a triangle =36. AC=x-2, BC=x, AB is unknown.

36 - (x-2) - x = AB