The form of the linear equation is

m is the slope that represents the rate of profit per year
b is the y-intercept which represents the initial amount in the year 2010
Since y is the profit in millions
Since x is the number of the year starting from 2010, then
At 2012:
The profit is 4 million dollars, y = 4
The year is 2012, x = 2
Substitute them in the rule above

At 2016:
The profit is 13.2 million dollars, y = 13.2
The year is 2016, x = 6
Substitute them in the rule above

Now, subtract equation (1) from equation (2) to eliminate b

Divide both sides by 4 to find m

Substitute m in equation (1) by 2.3

Subtract 4.6 from both sides

m = 2.3 million dollars per year
b = -0.6 million dollar
The equation of the profit is

The answer is
y = 2.3x - 0.6, where y is the profit in million and x is the years since 2010