Max went to the store, very hungry. He bought Takis for (10x² − 4x + 1) dollars,chocolate chip cookies for (−6x² + 15x − 2) and Sour Patch Candy for (3x³ – 5x). How much did Max spend?