Hello, thank you for taking the time to post your question!
The underlying formula that we’re trying to use to solve here is
A = P(1 + rt)
Solving that for P yields
P = A / (1 + rt)
From there then we can plug in the values that we know from the information given in the question
P = 10000 / (1 + 0.04*15)
P = 10000 / 1.6
P = 6250
Meaning that David’s initial investment here was $6,250
I hope that helps you get moving in a better direction on this type of question! Feel free to reach out if you have any additional questions beyond that :)