Choosing the right cam

I'm asking in general. It's something I've never truly been able to figure out. I always see 258's being suggested, but what I wish to know how they calculate what to run. Well use a stock TBI 360 as an example