A drugstore that sells a certain brand of vitamin C tablets predicts that their profit, P (in millions od pesos), can be modeled by the polynomial function P(a)=a³ +2a²-5a-1, where a is the amount spent on advertising (in thousands of pesos). How much did they spent on advertising if they profited 5 million pesos? Show the solution.