Expand the parentheses
The order of multiplication does not matter as long as you perform all the operations. When you write how many you have of each variable, the number goes in front of the variable. When you present your answer, you write the terms of the highest degree
first, and then the rest in descending order.
In this case, that means goes first, as that is the term with the highest order. If you had a term with , that would go in front of .