もとでした
motodeshita

Noun
Desu Copula

The polite past form of

1. Was (originally); Used to be

Past/Perfective
Polite
Mathematics