let their ratio of investment
[tex]x\colon y[/tex]then
[tex]x+y=52[/tex]again
[tex]\begin{gathered} \frac{x}{y}=\frac{5}{8} \\ 8x=5y \end{gathered}[/tex]Now
[tex]\begin{gathered} 8x+8y=416 \\ 5y+8y=416 \\ 13y=416 \\ y=32 \end{gathered}[/tex]So
[tex]x=\frac{5\times32}{8}=20[/tex]So kofi invest 20 million and ama invest 32 million each