Subhash $1$ hr work=$50/10=5$ pages
the number of pages copied by Subhash +prakash in $1$ hr=$300/40=7.5$ pages
So Prakash can copy pages in $1$ hr=$7.5-5=2.5$ pages
$\because 2.5$ pages copied $\rightarrow 1$ hr
$\therefore 30$ pages can copied $\rightarrow\frac{30}{2.5}=12$ hr
Option $(B)$ is correct.