y = rate of passenger growth (person/minute)
x = number of minutes the line had been forming BEFORE admission starts
z = rate of admission
A = how long it takes with 8 windows(answer)
y*(x+40) = 3*40*z ==> x+40 = 120*(z/y)
y*(x+25) = 4*25*z ==> x+25 = 100*(z/y)
(z/y) can be treated as one variable here, so this is easily solved to get the two variables x and (z/y), then just solve:
y(x+A) = 8*A*z ==> x+A = 8*A*(z/y)
to get A
so 处方 was right, 10 minutes