B option (18)

initially there is 7 processor and 20p means 20 down or wait operation and v means up or signal operation,so

equation will be

7-20+x=5

here =5 shows that the final value, after calculation will be 5 as( given in question) so

-13+x=5

x= 18