An old man had five sons and three houses. Before he died, he made a will and distributed the three houses to each of his three sons. As compensation, each of the three sons who got the house took out 1,200 yuan and shared it equally with the two sons who did not get the house. Everyone says that this kind of distribution is fair and reasonable, so how much is the value of each house?
一位老人有五个儿子和三间房子，临终前立下遗嘱，将三间房子分给三个儿子各一间．作为补偿，分到房子的三个儿子每人拿出1200元，平分给没分到房子的两个儿子．大家都说这样的分配公平合理，那么每间房子的价值是多少元？
<gadget id="calculator">1_200 * 3</gadget>
<output>3_600</output>

<gadget id="calculator">3_600 / 2</gadget>
<output>1_800</output>

<gadget id="calculator">1_800 * 5</gadget>
<output>9_000</output>

<gadget id="calculator">9_000 / 3</gadget>
<output>3_000</output>

<result>3_000</result>