This interview with the writers seems to indicate that Raimi Trilogy Spider-Man is 43 during NWH. (Note that this isn't Tobey Maguire's age, which is 46) Either the Raimi Trilogy takes place a few years earlier than their release date, or Raimi Trilogy Spider-Man was somehow pulled into the MCU's 2024 from his own verse's 2027.
MCKENNA: We were like, “We’ve got to make them each very specific.” As writers, we kept saying, “Where are these characters in their lives when they come into the movie?” Where is Tobey? We’re not de-agifying him.
He’s a guy who is 43, who is entering this movie, and Andrew Garfield, where are they in their lives? The last time you saw Andrew Garfield, it was the death of Gwen, and that must have sent him down a dark spiral, maybe he never got out of. We don’t know, because there wasn’t a third movie that we saw. Where did he go? Maybe a really dark place. We wanted to be true to the characters in those movies. Really having conversations about specifying where they are, without giving away too much. Not coming in, spilling all the beans. “Tobey’s Peter is running Peter Parker Industries!” You just wanted to have little hints of that without it being all this exposition as fan service.