Such as interest, foundation, IQ, ability, talent, memory.
But the most important thing is the hard work the day after tomorrow. Do more questions and you will naturally have the ability.
Look at Hua. He began to study mathematics hard when he was a child. Because of his diligence, he'd better become a famous mathematician.
Come on, as long as you work hard, you can learn math well!