The average of 15 results is 40 and that of first seven is 30 and that of last seven is 34. The value of 8th result is:
160
152
138
148
158
8th number will be = Sum of 15 results - (Sum of first seven + Sum of last seven) = (15 x 40) - (7 x 30 + 7 x 34) = 152.