The correct option is A x+(y−z)
Ravi initially had x fruits. After buying y fruits, he had x+y fruits. Then, he sold z fruits to his friend. So, now he has (x+y)−z fruits.
But according to unchanging relations, (x+y)−z=x+(y−z).
Hence, he has x+(y−z) fruits now.