Cost of horse cart with the horse is X, And the cost of the horse cart is Y rs. more than the cost of the horse
So,
Cost of the horse cart with horse = X
Let the cost of the horse is = Z
so the cost of the horse cart with out horse is = C = X-Z = Y+Z (given)
2Z = X-Y
Z= (X-Y)/2