Ta có
$\dfrac{x^2 - 10x + 25}{x^2 - 5x} = \dfrac{(x-5)^2}{x(x-5)} = \dfrac{x-5}{x} = 1 - \dfrac{5}{x}$
a) Để phân thức bằng 2 thì
$1 - \dfrac{5}{x} = 2$
$<-> \dfrac{5}{x} = -1$
$<-> x = -5$
Vậy $x = -5$
b) Để phân thức bằng 5 thì
$1 - \dfrac{5}{x} = 5$
$<-> \dfrac{5}{x} = -4$
$<-> x = -\dfrac{5}{4}$