In Spain, the pension system is organized into two main categories: the contributory system and…