I saw this movie in the early 90s, maybe it was late 80s.
A few things I remember:
Main character was a girl, a sheep farmer, with money problems, the owner of the town I think offer to help her if she marries her, and somehow her boyfriend dissapeared
There was a song about addition (and math sybols floating in the air)
That’s all I can remember, it was apparently a kids movie