Breaker size for # 12 wire
You have not specified what type load and what type overcurrent protection is provided ie. (circuit breaker or fuse) the #12 conductor is supplying. If the circuit is supplying a motor load, the NEC allows a CB or Fuse rated greater than the conductor ampacity.