For an initial investment of $1000$, investment A pays $100$ every year for $10$ years, starting from the end of year 1, plus a bonus maturity payout of $1000$ (i.e you receive a total of $1100$ at the end of the tenth year), while investment for B pays you $80$ every year for $10$ years, starting from the end of year $1$, plus bonus maturity payout of $1220$. On the basis of yield, which of the 2 investments is preferable.
Yield for A should be
$-1000 + \sum_{n=1}^{10}\frac{100}{(1+i)^{10}} +\frac{1000}{(1+i)}$
Yield for B should be
$-1000 + \sum_{n=1}^{10}\frac{80}{(1+i)^{10}} +\frac{1220}{(1+i)}$
A hinnt is given in the question to use Newton Raphson, but I do not knw where to start.

The investment for A is given as
$0=-1000 +10[\frac{1-(1+i)^{-10}}{i}]+1000(1+i)^{-10}$
Letting $(1+i)^{-1}=x$ and simplifying
$f(x)=-1000(1-x)+100x(1-x^{10})+1000x^{10}(1-x)=0$
$f(x)=11x^{11}-10{x^{10}}-11x+10$;
$f'(x)=121 x^{10}-100x^{9}-11$
By Newton Raphson, we get $i=0.10$
Similar approach for B.
$f(x)=65x^{11}-61x^{10}-54x+50$
$f'(x)=715x^{10}-610x^9-54$.
After $5$ iterations, I got $i=0.098$