Position racks in the upper and lower thirds of the oven and heat to 400 degrees (375 degrees convection). If desired, line 2 heavy-duty rimmed baking sheets with parchment paper.
Combine the squash and apples in a large bowl and drizzle the butter, olive oil, and maple syrup over them. Season with the marjoram and salt and pepper and toss to coat. Transfer the mixture to the baking sheets, distributing it evenly and spreading it in a single layer.
Slide the baking sheets into the oven and roast, turning the squash and apples with a metal spatula once or twice, until the squash is well caramelized on the outside and tender throughout and the apples are tender, about 40 minutes. Taste for salt and pepper, sprinkle with the nuts, if using, and serve hot or warm.