5. Entrepreneurs Vasiliy Petrovich and Pyotr Gennadiyevich opened a clothing factory called "ViP". Vasiliy Petrovich invested 200 thousand rubles, and Pyotr Gennadiyevich invested 350 thousand rubles. The factory proved to be successful, and after a year, Anastasia Alekseevna approached them with an offer to buy part of the shares. They agreed, and after the deal, each of them owned one-third of the company's shares. Anastasia Alekseevna paid 1,100,000 rubles for her share. Determine which of the entrepreneurs is entitled to a larger portion of this money? In your answer, write the amount he will receive.
Answer: 1,000,000. Anastasia Alekseevna paid 1,100,000 for her share, which is one-third, so all the shares of the factory are worth 3,300,000. Let the shares of Vasiliy Petrovich be worth X rubles, then the shares of Petr Gennadiyevich are worth $3,300,000 - X$ rubles. It should be that $200 / 350 = X / (3,300,000 - X)$. From this we get: $350X = 200 * 3,300,000 - 200X$ $550X = 660,000,000$

$X = 1,200,000$ rubles - the value of Vasiliy Petrovich's shares. After the deal, he was left with a third of the shares worth 1,100,000, which means he sold Anastasia Alekseevna shares worth 100,000. The remaining shares she bought for 1,000,000 from Petr Gennadiyevich.