Help searching google!

I’ve already looked at the WWW class, my question is, how could you search google for say, a math problem, and retrieve the result?

When you say “retreive the result”, what do you mean? If you want to get a list of the search results on that term, you should have a look at this search API from google:

If you want to get answers to math questions in particular, it could be worth having a look at the Wolfram Alpha API: