An arrangement of 12 real numbers in a row is called *good* if for any four consecutive numbers, the arithmetic mean of the first and last numbers is equal to the product of the two middle numbers. Determine how many good arrangements exist in which the first and last numbers are 1, and the second number is the same as the third.

Let's think step by step and output the final answer within \boxed{}.
user