Amount deposited = 8000
Rate of interest = 10%
Amount in the account of Diya at the end of 2 years
= 8000 × (1 + \(\frac{10}{100}\))2
= \(8000\times\frac{110}{100}\times\frac{110}{100}\) = Rs.9680
Amount withdrawn = Rs. 5000
Principal for the 3rd year
= 9680 – 5000 = Rs. 4680
Amount she get at the end of 3rd year
= 4680 \((1+\frac{10}{100})\)
= \(4680\times\frac{110}{100}\)
= Rs. 5148