If x2−ax+b=0 and x2−px+q=0 have one root common and the second equation has equal roots, then b+q is equal to