In an A.P., the first term is 22, nth term is -11 and the sum to first n term is 66. Find n and d, the common difference.