It will take the company at least **3 days** to earn a profit.
The company will earn a profit when its revenue (R(x)) exceeds its cost (C(x)). Therefore, we need to find the number of days (x) when the inequality R(x) > C(x) holds true.
Here's how to solve it:
1. **Set up the inequality:**
R(x) > C(x)
2. **Substitute the given functions:**
(-x^2 + 5x + 58) > (2x^2 - 20x + 80)
3. **Combine like terms and simplify:**
3x^2 - 15x + 22 > 0
4. **Factor the inequality:**
(x - 2)(3x - 11) > 0
5. **Analyze the signs:**
Since the inequality is greater than 0, either both factors must be positive or both must be negative. We can analyze the signs of each factor for different values of x:
* x < 2: Both factors are negative.
* 2 < x < 11/3: Only the first factor is positive. (Not a solution as R(x) will be negative)
* x > 11/3: Both factors are positive.
6. **Conclusion:**
Therefore, the company will earn a profit only when x > 11/3. Since we are looking for the number of days, we round the value up to the nearest whole day, which is **3 days**.
Therefore, it will take the company at least **3 days** to earn a profit.