This action force mg is being applied by the body on the table. To hold the body in position the table also exerts equal and opposite force on the body which is the reaction. So in this case downward force mg by the body on the table is action and the upward force mg by the table on the body is the reaction.