Write each function in standard form:

1. y = (x + 7)(5x + 2)(x - 6)²

Using the first method, the one I think is right, I got:I got the answer, but I am not sure if its right. Because I did it two different ways and got two different answers.

First way, I foiled (x + 7) and (5x + 2), and then foiled (x - 6) and (x - 6). Then I just multiplied the product I got.

Second way, I foiled (x - 6) and (x - 6), then multiplied the product with (5x + 2) and again, I multiplied the product of that with (x + 7).

$\displaystyle 5x^4 - 23x^3 - 250x^2 - 168x + 1836$

Is it right??