Answer: 12 ms
$$\text{Transmission time, } T_t = {Packet \space size \over Bandwidth} = 1000 bytes / 10^6 / 8 Bps = 8ms$$
$$\text{Efficiency of Stop and Wait Protocol, } \eta = {1 / 1+2a} \text{ where a = } T_p/T_t$$
$$\text{Given efficiency, } \eta = {0.25}$$
$${1 \over 1+2a} = {0.25}$$
$$1=0.25+0.5a$$
$$0.5a = 0.75$$
$$a = 1.5$$
$$T_p/T_t=1.5$$
$$T_p=1.5 \times T_t = 1.5 \times 8 = 12 ms$$