Task 1. In the first barn, there are 1999 more apples than in the second barn. In which barn will there be more apples and by how many, if we transfer 1000 apples from the first barn to the second barn.
Solution. If the second basket has $x$ apples, then the first one has $x+1999$. After the transfer, the first will have $x+999$, and the second will have $x+1000$. It follows that the second one has one more apple.