To figure out what order you expand the brackets in, you must use the FOIL method. FOIL stands for First, Outer, Inner, Last. In order to expand the brackets correctly, you must firstly multiply the first numner of each bracket together (xx = x²), then the outermost ones (x3 = 3x), then the innermost ones (2x = 2x), and finally the last ones (23 = 6), which in the end leaves you with your answer (x²+5x+6)