How do I cut the angle for crown molding?

I'm redoing my floor baseboards and crown molding how to cut the angle. I get very confused on the angles for the crown molding and the baseboards, what's the trick to cutting them right and not getting it backwards?