How is health insurance primacy determined?

I currently have I two group coverages:  

  • One BCBS  with birth month August
  • One FEP BCBS with birth month of October

My claims are being denied/held as both are stating the other insurance is primary.