I seeking to have some ideas in order to solve polynomial equations like 5x2+3x-8where x=7, then we can substitute this value of x in the given equation and can find the total value to which can be evaluated e.g. the above equation can be calcutaled as 258, also able to solve equations with two variables.

note: polynomial equation will be provided as string!(as user input).

please help.