Points A, B, and C are collinear, and C is between A and B. If AB=8x-4, BC=x+2, and AC=x^2, find the values of x.

AC+CB=AB

x^2 + x+2 = 8x-4
x = 1 or 6