@Maxi1780,
You can look at the extremes that exist in the same city and country. We live in Silicon Valley in Northern California where the per capita income is one of the highest in the country if not the world, but we also have a high level of poverty. The reason we can "afford" to live here is that we moved here when housing costs were reasonable, and I paid off our mortgage in the same year I retired in 1998. Many of the homes in this area now sell for over $1 million and closer to $2 million. Even people earning six figures in this area have difficulty buying a home because the cost of living is prohibitive. There's a shortage of housing, so many people rent out rooms. That's the micro and macro of our economy in Silicon Valley.
https://www.zillow.com/research/living-costs-silicon-valley-seattle-12314/
Average income. The best company to work for in the beginning of a tech career based on this pay data is Facebook, which pays people with less than five years experience $116,800 at the median. After 10 years of experience, it pays more to work at LinkedIn, which pays mid-career employees a median of $159,600.
When I ended my working career in 1998, I made less 50% of the $116,800.
However, my investments have returned over six figures for the past 12 months, and $55,500 average per year for the past ten years with Vanguard.