Macroeconomics1、2、3、4、Abby consumes only apples. In year 1, red apples cost 1 dollar each, green apples cost 2 dollar each, and Abby buys 10 red apples. In year 2, red apples cost 2 dollar, green apples cost 1 dollar, and Abby buys 10 green apples.a. Compute a consumer price index for apples for each year. Assume that year 1is the base year in which the consumer basket is fixed. How does your index change from year 1 to year 2?b. Compute Abbys nominal spending on app