Provide the same services with about 60% less revenue, and NOT by inflating the difference away. Oh and without hiring essentially anyone.
Keep raising the retirement age so someone born after ~1980 essentially never retires. And ... I guess pray that medicine actually makes this possible.
Both have obvious problems. It seems to me a near-certainty that all governments will not know how to run fast enough to option b. Now there may be "robots" or whatever as a plan, long term, but while I don't work in robotics, I do have a master in it. We're 50 years away from viable robotic care for humans. We're currently not capable to build a robot that's physically capable of doing it without weighing 800+ kg, which makes it a non-starter (and this is the only part of the problem I expect someone like Elon Musk might be able to fix in, say, 10 years)
Of course, governments being what they are they are, are working on it. By:
1) making immigration much harder (and world demographics will start making it harder very soon now, and those won't stop)
2) dropping investment in robotics and medical research
3) making it harder every year to become medical care professionals
TLDR: you definitely won't retire in 20 years. Unless we can create a company and make, at the barest minimum, ~5 million there won't be retirement for any of us.
This maybe less of an issue in Europe but its still an issue there for sure, this is a young industry that likes young people, tolerates middle aged (40-50) and hates anything above that.
For the past 20 years there's been a massive influx of people into IT.
Which means that we're starting to reach a point where there are ALREADY a lot of people in IT.
Those people will start becoming older and older.
It's a slow phenomenon, but I expect that by 2040 or so the average age of the IT worker to have gone up by at least 10, but more likely by 15 years.
So no more this "28 year olds are the majority", but more "40 year olds are the majority".