In this problem, you have to find the total profit the company made in the three quarters which makes up 3/4 of the whole. In the second quarter, the profit is 4 million. Let x be the profit in the first quarter. Following the description,
4 = (1+1/3)x
x = 3 million
Thus, the second quarter made 5.33 million profit.
For the third quarter, let's assign it to the y variable. Following the description,
4 = (4/5)(y)
y = 5 million
Thus, the total profit is 4 + 3 + 5 = 12 million