If \((x-1)^2=x^2-6x+b\), where \(a\) and \(b\) are constants, what is the value of \(b\)?