Find the sum of all the values of $x$ that satisfy the system of equations $y=|x^2-6x+5|$ and $y=\frac{29}{4}-2x$.