We are told that the first term of the arithmetic progression (A.P.) is a1=10. Let the common difference be d and let the total number of terms be n. In an A.P. every term is obtained from the previous one by adding the common difference, so in general we have the formula
ak=a1+(k−1)d.
First, we use the information about the sum of the first three terms. The first three terms are a1,a2,a3, and their sum is given to be 39. Writing each term with the above formula:
a1+a2+a3=10+(10+d)+(10+2d)=39.
Simplifying the left side step by step, we collect all constants and all d terms:
10+10+10+d+2d=39⟹30+3d=39.
Subtracting 30 from both sides, we have
3d=9.
Now we divide by 3:
d=3.
So the common difference of the A.P. is 3, and the sequence begins
10,13,16,19,…
Next, we are told that the sum of the last four terms equals 178. Let the last (i.e. nth) term be an. Then the last four terms are an−3,an−2,an−1,an. Using the general term formula with d=3, we write each explicitly:
anan−1an−2an−3=10+3(n−1)=3n+7,=10+3(n−2)=3n+4,=10+3(n−3)=3n+1,=10+3(n−4)=3n−2.$
Adding these four expressions, we get their sum:
(3n+7)+(3n+4)+(3n+1)+(3n−2)=12n+10.$
We are told this sum equals 178, so
12n+10=178.
Subtracting 10 from both sides,
12n=168.
Dividing by 12,
n=14.
Thus the progression has 14 terms. The median of an ordered list with an even number of entries is the average of the middle two terms, i.e. the 2n-th and (2n+1)-th terms. Here n=14, so we need the 7th and 8th terms.
Using ak=10+3(k−1) again, we compute
a7a8=10+3(7−1)=10+18=28,=10+3(8−1)=10+21=31.$
The median is their average:
Median=2a7+a8=228+31=259=29.5.
Hence, the correct answer is Option B.