If one of the roots of the equation `x^2+px+12=0` is `2` and two roots of the equation `x^2+px+q=0` are equal, then find the value of `q`.

Answer of this question will be added soon.

Share it on