On the first day, 1*X people were infected, and on the second day, (1+X)*X people were infected.
1+X+( 1+X)*X=9
x? +2X+ 1=9
(X+ 1)? =9
X=2
At this rate of infection,
9 * (1+2) 5 = 2 187 people