Question: Find values for $a$, $b$, $n$ such that: $\frac{-ab(n+1)x-(an+b)y}{(a+bn)x+(n+1)y} = \frac{10x-4y}{3x-y}$
Attempt: Tried using the following relationships by comparing coefficients and solving for $a$, $b$, $n$:
$-ab(n+1)=10, an+b=4, a+bn=3, n+1=-1$
This gives no values of $a$, $b$, $n$ that satisfy all four equations.
Dividing the numerator and denominator by $-(n+1)$ instead which gives $\frac{abx+\frac{an+b}{n+1}y}{-\frac{a+bn}{n+1}x-y}$ and then comparing coefficients gives valid $a$, $b$, $n$. Why is this? I understand that this ensures the correct coefficient for $y$ in the denominator for all values, but I don't see how that is significant and how the first method does not also lead to the correct solution.
HINT
The original equations are solved if there is a number $k$ such that $$-ab(n+1)=10k,an+b=4k, a+bn=3k, n+1=-k.$$
You can use the fourth of these equations to eliminate $k$ and then you'll get a solution.