Previously, the farmer had sold a certain amount of grapes. Let's consider a different scenario where he had 874 grapes to begin with, but after selling some at the local market, he had 802 left instead. In this case, how many grapes did the farmer sell at the market?