TAMPA, Fla. (AP) — Baker Mayfield is staying with the Tampa Bay Buccaneers after agreeing to a three-year contract worth up to $115 million, a person familiar with the deal told The Associated Press on Sunday.

The person spoke to the AP on condition of anonymity because the agreement, which includes $50 million guaranteed, has not been finalized.

The Tampa Bay Times reported Mayfield, 28, will receive $30 million in 2024 and $30 million in 2025, with $20 million guaranteed in the second year of the deal. The quarterback's salary would increase to $40 million in 2026, the newspaper said.

Mayfield, who has played with four different teams over the past three seasons resurrected his career in 2023 by leading the Bucs to a third consecutive NFC South title.

The No. 1 overall pick from the 2018 draft threw for a career-best 4,044 yards and 28 touchdowns while cutting down on costly mistakes that undermined previous stints with the Cleveland Browns, Carolina Panthers and Los Angeles Rams.

The agreement came two days after Tampa Bay finalized a two-year, $52 million deal with receiver Mike Evans, who also passed up an opportunity to test his worth in free agency.

Another key to ensuring Mayfield’s return was a decision last month to hire Liam Coen as offensive coordinator after Dave Canales left the Bucs to become coach of the Panthers.

Coen worked with Mayfield with the Rams, while the quarterback was with Los Angeles in 2022.