One of the roots of the equation x^2-13x+q=0 is 12. Find the other root and the value of the coefficient q.