Consider the function y(x) implicitly decided by this equation: $\sin(xy)=\cos(x+y)$.
The graph on plane looks like this:

According to my textbook, we can take the derivative of both sides with respect to x to obtain the derivative y'(x)=[some function of x and y].
In this case y'(x) = -(\sin(xy)+y\cos(xy))/(\sin(x+y)+x\cos(xy)).
In this case $y'(x) = -\dfrac{\sin(x+y)+y\cos xy }{\sin(x+y)+x\cos xy }$.
Now evaluate $y'(x)$ at the point $A$. There seems to be two tangent lines at point $A$. Then which slope does $y'(x)$ at $A$ describe?



You've solved for $\frac{\mathrm{d}y}{\mathrm{d}x}=f(x,y)$, but the function you $f$ you have is not defined everywhere. Indeed, at those points of intersection $(x_0,y_0)$ where there is more than one tangent line, if you try to plug $(x_0,y_0)$ into $f$ you get $0/0$ which is undefined. Instead, you have to take the limit of $f(x,y)$ as $(x,y)\to(x_0,y_0)$ along the appropriate portion of $f$'s graph.
A simpler example is $y^2=x^2$ (which is equivalent to $y=\pm x$, which is just a big X). Differentiating and solving yields $\frac{\mathrm{d}y}{\mathrm{d}x}=\frac{x}{y}$. Along the path $y=x$ the ratio $\frac{x}{y}$ is identically $1$ so the limit is $1$, whereas on the path $y=-x$ the ratio is identically $-1$ so the limit is $-1$. As you can see by looking at the X, the two possible slopes are indeed $+1$ and $-1$.