Gold vs. Food–Which to buy first

A very common question for people who are getting started with preparedness and changing to a more self-reliant lifestyle goes something like this…I’ve only got $X. I know that I need to stock up on food, and I should probably have some gold & silver on hand, but what should I get first?