A square has a side length of 3x inches and an area of 324 i n^2. What is the value of x?