There are a few principles you need to remember to determine which resonance structure is more stable i.e. it contributes more to the resonance hybrid: