The function that models the profit of the company in million of dollars is:
[tex]P= x^{2} -6x+12[/tex]
where x represents the number of years since the company started. We want to find when the profit of the company was $4 million. Setting P as 4 in above equation, we can find the value of x when the profit was $4 million.
[tex]4= x^{2} -6x+12 \\ \\
x^{2} -6x+8=0 \\ \\
x^{2} -2x-4x+8=0 \\ \\
x(x-2)-4(x-2)=0 \\ \\
(x-2)(x-4)=0 \\ \\
x=2, x=4[/tex]
Thus, we can conclude that the profit of the company was $4 million in 2nd and 4th year