why isnt this code working?

I had commissioned a datapack, and this bit of code didn't work but I'm gonna try to fix it myself. It's supposed to tell everyone in chat and make a sound when someone reaches 35 advancements. For some reason, it doesn't work.

execute as @s[scores={bac_advancements=35,chattedfor=..34}] run tellraw @a ["",{"selector":"@s"},{"text":" Just Unlocked "},{"text":"1 Armor Point","color":"red"},{"text":"!"},{"text":" W ","color":"#FEFE02"},{"text":"in Chat!"}] execute as @s[scores={bac_advancements=35,chattedfor=..34}] run playsound minecraft:entity.experience_orb.pickup master @s execute as @s[scores={bac_advancements=35,chattedfor=..34}] run scoreboard players set @s chattedfor 35

Continue to help post