Hello, thank you for taking the time to post your question!
Since the question is asking about compound interest, the underlying formula you want to use here is
A = P(1 + r/n)^(nt)
In this scenario we’re plugging in A = 1700 + 500 = 2200, P = 1700, r = 7% = 0.07, n = 4, and then solving for the value of t algebraically
2200 = 1700(1 + 0.07/4) ^ (4t)
1.2941 = (1.0175)^(4t)
ln (1.2941) = 4t * ln(1.0175)
t = ln(1.2941) / 4 * ln(1.0175) = 3.72
meaning that it will earn $500 interest in about 3.72 years
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 :)