Are these commands correct?
/scoreboard objectives add money dummy
/execute as @a unless entity @s[scores={money=0..}] run scoreboard players set @a money 0
/execute as @a[nbt={SelectedItem:{id:"minecraft:paper",count:1,components:{"minecraft:custom_model_data":1}},Inventory:[{id:"minecraft:paper",Slot:-106b,components:{"minecraft:custom_model_data":2}}]}] at @s run scoreboard players set @s money SelectedItem.Count
/execute as @a[nbt={SelectedItem:{id:"minecraft:paper",count:1,components:{"minecraft:custom_model_data":1}},Inventory:[{id:"minecraft:paper",Slot:-106b,components:{"minecraft:custom_model_data":2}}]}] at @s run item replace entity @s weapon.mainhand with air 1
Continue to help post