Problem 2. In two fruit stores, there were a total of $365 \mathrm{~kg}$ of apples, which were sold at the same price. When the first store sold a certain amount of apples and received 4340 denars for it, and the second store received 8750 denars for its sold amount of apples, then in the first store, $102 \mathrm{~kg}$ remained, and in the second store, 76 $\mathrm{kg}$. How many kilograms of apples were there in each store at the beginning?
Solution. The two stores together sold: $365-(102+76)=187 \mathrm{~kg}$ of apples. For this, they received $4340+8750=13090$ denars. Therefore, the price of $1 \mathrm{~kg}$ of apples was: $13090: 187=70$ denars. At the first store, initially there were $4340: 70+102=164 \mathrm{~kg}$ of apples, and at the second store there were $365-164=201 \mathrm{~kg}$ of apples.