Finding all versions of a variable

I have this button that when you press it this mc is spawned, but you can press it multiple times so you can have multiple mc’s, but with different ending characters. So one will be coin2, then coin3, then coin4, ect. How would I look for each one without having to write if statements for them all. I want to check which ones x property is over 650, and if so subtract 650 from it. Can anyone help?