Dependent children and aged parents: funding education and social security in an aging economy