Since all the sides are x, you can say that the triangle is an equilateral triangle, because all the sides are equivalent. You know that the perimeter is 21cm, so x+x+x must equal 21.
Your equation is x + x + x = 21, or 3x = 21.
Divide both sides by 3.
x = 7