Use Wolfram Alpha, which is a mathematics engine first and text parser second (and it shows: the math is flawless but it wouldn’t understand the query; both need to be asked separately: 1/2). ChatGPT performs similarly this time but I wouldn’t trust it to expand a polynomial because there is very high chance that it would hallucinate some terms.
Of course, any calculator will do for this, it’s easy to verify that 2÷3×14 = 14÷1.5, no need to have a server run a billion times more complex calculation.