How do I thank someone for giving the right answer. I tried to make a comment but I was told I needed a reputation.
If you want to thank someone, upvote their answer.
If you don't have enough reputation to upvote, help someone else with their question to earn the reputation, then upvote. By doing so, you will have also provided back to the community by helping someone else. This should be more than enough thanks for anyone participating on this site.