There are three figures of areas x2, 12x and z respectively, as shown. Figures A and C are squares while B is a rectangle, with length of one side as x. What should be the value of z so that all the three figures can be arranged to form a square of side (x+6)?