It is all about the environment and how hard you work, but I think in the end this might lead to your offsprings being able to adapt to learning faster than you. If two people who excelled at school married they might have offsprings whose brains are quicker in terms of learning. In any case anyone can excel if they put the effort in. My mum is a
big-massive fan of education, with her - it is all about education. It suprises me, because she never had a proper schooling herself, and was from a small town, but her peers in xamar never cared too much about education. My mum made sure my siblings failed in school, because she never liked the school they went to - a somali state school. Apparently, if you wanted your kids to pass class you pay some bribery money, and she never did. Once they all failed and got kicked out, she told my father, "see this school is rubbish, we need to send the kids to private schools, they all failed"

And my father did afterwards, all my older siblings went to a private Arab school except one brother who went to a British private school (I always wandered, "would I have too?" since I was the year younger than him.) I'm telling you all this because education is important. You can't have Islam without being educated, and being educated is Islam!
So I quote Tony Blair this time; Education, Education, Education.
Please work hard on your offsprings education. Make something out of them! Insha-allah.
"O Allah fill the hearts and minds with true enlightenment, discerning intelligence, quick understanding and knowledge. Verily Thou are able to do all things"