Lets assume that there are 100 instructions.
Now, given that 80% are conditional branch instructions. Thus, 80 instructions are conditional branch.
1. Now, 50% of 80 instructions take the branch. That amounts to 40 instructions.
Lets assume this amount equal to CBT(conditional branch taken).
2. Also, 50% of 80 instructions dont take the branch. That amounts to 40 instructions.
Lets assume this amount equal to CBNT(conditional branch not taken).
3. Other instructions( OI ) = 20
Now, given that CBT instructions dont overlap i.e. they execute sequentially.
So, total time taken for CBT is = 40ins * 5stages * (2ns/cycle) = 400ns
Remaining instructions i.e.( CBNT + OI ) execute as per the normal pipeline procedure.
So, total time for (CBT + OI) = (60 + 4)stages * (2ns/cycle) = 128ns
So, total time required to execute 100 ins = 400 + 128 = 528ns
Thus, avg time required for 1 ins = ${528}/{100}$ = 5.28ns