We have,
x5→Defective
Remaining =x−x5=4x5
Damaged no. of dolls =25100×4x5=x5
No. of dolls left over were =x−x5−4x5
=3x5
3x5=4800
x=8000
Hence,
Original number of dolls is 8000.