The 5th number is counted in both the first 5 and last 5 sums.

• Sum of all 9 numbers = 9 × 40 = 360
• Sum of first 5 numbers = 5 × 38 = 190
• Sum of last 5 numbers = 5 × 44 = 220
• Sum of first 5 + last 5 = 190 + 220 = 410
• This counts the 5th number twice.
• 5th number = 410 − 360 = 50

Final Answer: 50