Is this problem stated correctly? The remainder theorem with the divisor and remainder as stated is:
p(x) = (x2-3x)q1(x) + (6x-5)
Since the zeroes of (x2-3x) are x=0 and x=3,
p(0) = -5, and p(3) = 13,
likewise for the other divisor,
p(x) = (x2-5x+8x)q2(x) + (2x-7)
and since (x2-5x+8x) = x2+3x, the zeroes are x=0 and x=-3
p(0) = -7 and p(-3) = -13
According to the problem as stated, p(x) has two different values (-5 and -7) at x=0 which is not possible.