Solution is
Each firm supplies 4 units in the long run.
Price will be 40
Total quantity traded in the industry will be 1000-40 = 960
Therefore, the number of firms will be 960/4 = 240.
Refer this link for a better understanding of how to approach such questions:
Link