If the polynomials ax3+4x2+3x−4 and x3−4x+a leave the same remainder when divided by (x - 3), find the value of a.