Answer:
80 parrots were purchased.
Explanation:
Let the total number of parrots be k.
If 20% (or 20/100 = 1/5) flew away and 5% (5/100 = 1/20) died, the remaining parrots will be k – (¹/₅k + ¹/₂₀k) = k – ¼k = ¾k.
Of the remaining, 45% (or 45/100 = 9/20) were sold, which means the total number of sold parrots will be ¾k × ⁹/₂₀ = ²⁷/₈₀k.
The remaining parrots = ¾k – ²⁷/₈₀k = ³³/₈₀k = 33
k = 33 × ⁸⁰/₃₃ = 80 parrots were purchased.