29er 17.5 mountain bike.

I’m looking to get my feet wet in this sport. I’m told I should be looking for a 29er and a medium / 17.5. Looking to spent under $500 if possible.