What functions are correlated with being good at math?

I have heard debates over whether math is a Ti or a Te thing. I think that it is generally a Ti thing because it involves structural rules and it is very precise.

I am not great at math. I am good at all other subjects, but I get this feeling of anxiety around math. It is just so precise, and I tend to make silly mistakes.