The product of a + 3 and –2a2 + 15a + 6 is –2a3 + xa2 + 51a + 18. What is the value of x?

The product of a + 3 and –2a2 + 15a + 6 is –2a3 + xa2 + 51a + 18. What is the value of x?
a. 3
b. 9
c. 12
d. 15