Please solve the following equation :-
We have only been taught to solve the equations of or sort. I managed to get the numerical value but I couldn't figure out that how did in come ? What's the general equation of this type ? And please also solve the equation step by step as I want to know the real way of solving these type of equations.