Increase in price of both shirt and pair of pants = $1
So, price of a shirt in year 2 = $(25 + 1) = $26
Price if a pair of pants in year 2 = $(20 + 1) = $21
Now, cost of 3 shirts in year 1 = 3 × $25 = $75
Cost of 2 pair of pants in year 1 = 2 × $20 = $40
So, total cost in year 1 = $(75 + 40) = $115
cost of 3 shirts in year 2 = 3 × $26 = $78
Cost of 2 pair of pants in year 1 = 2 × $21 = $42
So, total cost in year 2 = $(78 + 42) = $120
Thus,
CPI = (total cost in year 2/total cost in year 1) × 100
= (120/115)×100
= 104.35