Google Referrer

I’m currently working on a website with some long pages with multiple important keywords in it. I’m a little worried about the possebility that people who found this website via a search engine won’t find the stuff they are looking for. So, would it be possible when I get a visitor from Google which is looking for ''Keyword X tips" to go automatically to the anchor of “Keyword X”. And if they look for “Keyword Y books” they go to the “Keyword Y” anchor.

Can this be done? And if it can be done, can it be done easily (I barely have any PHP knowledge). Is there a script/software availeble for such things?