Some countries have solved the problem, while others haven't. There is not much to figure out. There are three basic tools: higher contributions, higher retirement ages, and lower benefits. You just have to make decisions. Ideally decades in advance, to avoid unfair sudden changes.