B is the midpoint of A and C. If BC=3x2, and AC=54, find the value of x. Show all work

3 x^2 = 54/2 = 27

x^2 = 9
x = 3