How can it be that ChatGPT will successfully write code for a relatively complex discord bot, complete with correct and functioning logic, but will fail to correctly solve for x given the equation 2x = 4?