Let amount be ₹ P and rate of interest be R % annually .
According to the question,
Amount after 1st yr = ₹ 1200
⇒ P(1 + R/100) = 1200 ...(i)
Amount after 3rd yr = 1587
⇒ P(1 + R/100)3 = 1587 ...(ii)
On dividing Eq. (ii) from Eq. (i), we get
(1 + R/100)2 = 1587/1200 = 529/400
⇒ 1 + R/100 = 23/20
⇒ R/100 = 3/20
∴ R = 15 %