From the first line to the second we the order of the terms (9+4x) inverted. This doesn't affect the results, because of the Commutative Property of Addition. Then from the second line to the third we have the order of the two terms in the product inverted, this does not change the result because of the Commutative Property of Multiplication.