Total micro operation which have to be stored in control memory is = 300*5 =1500
Number of bits are required to address one of the micro operation from control memory is log(1500) = 11 bits (CAR)
Number of bits are required CMDR (Control memory data register) = Flag(6) + branch Condition(4) + Control signals(8) + next micro operation address(11) = 29 bits
therefore CAR+CDR =40 bits