At any army camp the provisions were stored for 40 days but ten days after the no. of soldiers become double. Now the food lasts for x days. What is x?

At any army camp the provisions were stored for 40 days but ten days after the no. of soldiers become double. Now the food lasts for x days. What is x?

A. 30
B. 40
C. 50
D. 15