According to question,
$P\times \frac{50}{100}=Q\times \frac{25}{100}$
$\Rightarrow P\times 50=Q\times 25$
$\Rightarrow P= \frac{Q\times 25}{50} \Rightarrow P=\frac{Q}{2}$
$P=Q x\%$
$\therefore Q\times \frac{x}{100}=\frac{Q}{2}$
$\Rightarrow x=\frac{100}{2}$=50