In the expansion of (1+x) to the power of n, the first three terms are 1-0.9+0.36. Find the values of x and n.