Solve for x:
-x^2+6 x-5 = 0
The left hand side factors into a product with three terms:
-((x-5) (x-1)) = 0
Multiply both sides by -1:
(x-5) (x-1) = 0
Split into two equations:
x-5 = 0 or x-1 = 0
Add 5 to both sides:
x = 5 or x-1 = 0
Add 1 to both sides:
Answer: |x = 5 or x = 1