How is this calculated? According to solidity precedence, multiplication has precedence against division
Amount= (15- 10) * 10 / 15 * (10_000 - 5_000) / 10_000;
So Shouldn't it be
5 * 10 / 15 * 5_000 / 10_000
50 / 75_000 / 10_000
Not sure why remix and ChatGPT spit out answer 1
The step with AI was
From 1)
50/15 * 5_000 / 10_000
Why is the AI correct?