Mario's Early Years! Fun with Numbers
From the Super Mario Wiki, the Mario encyclopedia
Mario's Early Years! Fun with Numbers (known as Mario Teaches Sums for the United Kingdom's IBM-PC release) is an educational Mario game that taught numbers and basic geometry/sorting to children. It was released for the MS-DOS and SNES in September 1994, following Mario's Early Years! Fun with Letters and preceding Mario's Early Years! Preschool Fun.
The game takes place on a set of islands to which Mario and Princess Peach sail. The player can click one of the islands to enter, after which the player sees Luigi asleep. Once the player clicks him, various activities must be performed to learn.
The SNES version of the game is generally the same as the PC edition, but with some differences due to reduced space.