A man invests a certain amount a money at 2% interest and $800 more than that amount in another account at 4% interest. At the end of one year, he earned $112 in interested. How many was invested in each account?

Which of the following equations could be used to solve the problem?

A. 0.02x + 0.04(800) = 112

B. 0.02x + 0.04(x + 800) = 112

C. 0.04x + 0.02(x + 800) = 112​