Assertion (A): If \(x=a\) is the root of a quadratic equation \(x^2-(a+b)x+k=0\) then the value of \(k\) is \(a-b\).
 
Reason (R): If \(x = 2\) is the root of a quadratic equation \(x^2-5x+k=0\) then the value of \(k\) is \(6\).