I haven't done math for a long time.
The excess profits obtained are distributed between the country and the factory at 7:3, that is, the country is 7/ 10, the factory is 3/ 10, and the country is 4/ 10 more than the factory, that is, 2 million yuan. The excess profit is 200/4/10 = 5 million yuan. The national excess profit is 500 * 7/10 = 3.5 million yuan, and the factory excess profit is 500 * 3/10 =10.5 million yuan.