Petr has $5000 invested in two plans. One play pays 5% simple interest per year and the other pays 8%. At the end of the year, Petr receives a total of $340 in interest. How much did he invest in each plan?



Answer :