The task is to generate the correct answer for a given math problem.

Problem: peter invests a sum of money and gets back an amount of $ 815 in 3 years . david invests an equal amount of money and gets an amount of $ 850 in 4 years . if both amounts were invested at the same rate ( simple interest ) what was the sum of money invested ?
71