james and john invested ¥700 and ¥300 respectively, at the end the of one year, they divided their profits such that a third of the profit is divided equally for the efforts they have put into the business and the remaining amount of profit is divided in the ratio of the investments they made in the business. if james received ¥800 more than john did, what was the profit made by their business in that year?