In an isosceles triangle, each side is 18 inches more than the third side. The perimeter equals 54 inches. What is the length of each side?

x+18 + x+18 + x = 54

x = 6