Mathematically, what is the issue when you try to solve for it?.
Mathematically, there are various types of functions that have been given names: "elementary" functions like [$]\sin x[$] and "special" functions like the cumulative normal function in the Black-Scholes formula. What you are trying to do is called "root finding": finding a solution [$]x = x_0[$] that satisfies an equation of the general form: [$]f(x)=0[$]. The problem is that, even when [$]f(x)[$] can be expressed entirely in terms of "named" functions (elementary or special), the root [$]x_0[$] cannot be. It requires a numerical approach, such as Newton's method, as has been explained to you. This is so common a problem that root-finding numerical methods are widely available in existing software. But if you have to "roll your own", then you need to open up an introductory calculus text and learn Newton's method.
I will add a p.s. that, while Newton's method or other root-finding numerical methods are not too complicated, writing a truly robust implied volatility routine is actually a fair amount of work. You will discover this after you initially get some numerics working and then later find that your routine fails because of some new data that you did not anticipate handling. Good luck!