Each instruction will run 1 cycle anyway in ideal case so 10^9 cycles will run for sure but there will also be stall cycles we should add ,
Now for the stall cycles 20% that is 0.2 x 10^9 are the required no of branch insutructions and each branch instruction will have 2 stalls because each of the instruction the target/branch condition evaluation is done at the third stage hence 3-1 (kth stage done so k-1 stalls) = 2 stalls will be there.
Now, as we can see 10^9 + 0.2x(10^9)x2 = total no of clock cyles for all instructions
Now for time we multiply clock cyles with time for one which is, multiply by 1/(10^9) as time = 1/f
So, final answer will be 1.4 s