Where Did Peanuts Originate?

Some people say peanuts originated in Peru and some believe they originated in Brazil. Peanuts been around for so many years that it is hard to trace them back to there origin.