9.1. A merchant bought several bags of salt in Tver and sold them in Moscow with a profit of 100 rubles. With all the money earned, he again bought salt in Tver (at the Tver price) and sold it in Moscow (at the Moscow price). This time the profit was 120 rubles. How much money did he spend on the first purchase?