In an AP the first term is 22, nth term is -11 and sum of the first nth terms is 66.Find n and d, the common difference.