Use the remainder theorem to determine the remainder when d4 + 2d2 + 5d − 10 is divided by d + 4.

A. 126
B. 42
C. 258
D. 106