Which of the following involves Newton's second law of motion?
Both (A) and (B)
Newton second can be given as:
“The acceleration of an object as produced by a net force is directly proportional to the magnitude of the net force, in the same direction as the net force, and inversely proportional to the mass of the object.”
So a body at rest moves in the same direction as of the applied force.
And, the reaction of wall tries to push the palm in a direction opposite to its initial direction of motion.
The absorption of this impact gives a sensation of pain.