The correct option is B Impossibility of objects
Under section 56 of the Contract Act, agreement to do an act impossible in nature, itself is void. This is also known as Doctrine of Frustration. In the present case, X and Y have agreement of discovering gold through magic which in eyes of law is impossible in nature and hence, is void.