Well, LLMs are bad at math but they're ok at detecting math and delegating it to a calculator program.
It's kind of like humans.