In $11$ hours $C$ walks $12.5 \text{ km}$ less than what $D$ does in $12$ hours; and in $5$ hours $D$ walks $3.25 \text{ km}$ less than what $C$ does in $7$ hours. How many $\text{km}$ does each walk per hour?
Attempted solution:
Let speed of $C$ and $D$ be $S_C$ and $S_D$ respectively. Let $D$ travel $x \text{ km}$ in $12$ hours. Let $C$ travel $x \text{ km}$ in $7$ hours.
Accordingly:
$$S_C=\frac{x-12.5}{11}$$
$$S_D=\frac{x}{12}$$
$$S_C=\frac{y}{7}$$
$$S_D=\frac{y-3.25}{5}$$
Fur variables, four unknowns, we should get the answer on solving.
On solving, I get $S_C= 7.07$ and $S_D=4.25$.
However the answer is $S_C= 3.5$ and $S_D=4.25$.
I am aware of other method of solving. But I want to know where I have gone wrong in formulating these equations. Please help.