A cube with side length 4p is stacked on another cube with side length 2p^2. What is the total volume of the cubes in factored form?