I spent more than an hour to find solution to this problem

I arrived at the equation given in the image.
But wasn’t able to move forward from this.
Please explain in a step-by-step “evoluionary” manner that how can I arrive at the solution starting from the equation given by me.
Please help