Find the polynomial if given q(x) = x\(^2\) – x – 5, d(x) = 3x…