I have a twin sister. Throughout school, she struggled with maths in a way that I never did. Until university, maths for me was always a case of doing minimal effort and getting As. My twin sister ended up going to maths tutors out of school, spending far, far longer on the topic than I ever did. Even then, when the opportunity presented itself, she dropped maths. There was more enjoyable and easier subject areas to study.
Equally, I spent a long time struggling at school with french. The amount of work I had to put in to achieve an "acceptable" result was considerably more than my peers. When the opportunity presented itself, I stopped studying french.
I firmly believe that, given enough tutoring, almost anyone could learn the maths that I studied all the way up to at least the first year of my degree. Equally, the evidence is that anyone is capable of learning a language. If I'd put in enough work, memorised enough vocabulary and been willing to practice I almost certainly could have achieved something approaching fluency.
However, in both those cases my sister and I came to the table with some innate abilities. She pursued what she found easy and enjoyed, and I pursued what I found easy and enjoyed. Today she's fluent in 3 languages and I'm fluent in 1, while I have an engineering degree.
Incidentally, I have an older sister who did study maths to a higher level. Hopefully that's slightly indicative that the environment that we grew up in wasn't discouraging towards girls studying maths or sciences.