Apologies for the late reply! After futzing around with another code for a while and being stumped, I tried yours! It was exactly the solution I was looking for, thank you so much! :]
Heyoo! It's been a few months and I've chipped away on this, bc it seems to be a more simple solution than some others were suggesting. I tried inputting your suggestions, they're all near the top, but I'm still struggling with getting it all to work. I've tried swapping some of the x variables in the code with what (I think) applies but I'm still getting syntax error readouts.
I did try using that but I was still getting duplicate answers. I likely wasn't implementing it properly but I'm not sure where it was going wrong with the implementation, if that makes sense.
Apologies for the late reply! After futzing around with another code for a while and being stumped, I tried yours! It was exactly the solution I was looking for, thank you so much! :]