Xiao Wang invested 40,000 yuan, Xiaodong contributed 50,000 yuan, and the two jointly opened a children's bookstore. After a year of hard work, the total profit was 45,000 yuan. According to the distribution according to the amount of investment, how much yuan should Xiao Wang get.
小王出资40000元，小东出资50000元，两人合伙开了一家儿童书店．经过一年的辛勤劳动，共获利45000元．按出资多少分配，小王应分得多少元．
<gadget id="calculator">40_000 + 50_000</gadget>
<output>90_000</output>

<gadget id="calculator">40_000 / 90_000</gadget>
<output>4/9 = around 0.444444</output>

<gadget id="calculator">45_000 * (4/9)</gadget>
<output>20_000</output>

<result>20_000</result>