If one root of the equation x2+px+12=0 is 4, while the roots of the equation x2+px+q=0 are same, then the value of q will be