The correct answer is C: the hammer and the wall exert forces on each other that are equal in magnitude but in opposite directions.
This is an application of Newton's Third Law of Motion, which states that for every action, there is an equal and opposite reaction. When the sledgehammer strikes the wall, the hammer exerts a force on the wall, and the wall exerts an equal force back on the hammer in the opposite direction.