A student is given three unknown solutions, P, Q, and R. Solution P turns blue litmus red. Solution Q has no effect on red or blue litmus paper but reacts vigorously with magnesium ribbon, producing gas bubbles. Solution R turns turmeric paper from yellow to reddish-brown.
Based on these observations, identify the nature of solutions P, Q, and R, respectively.