(a) A solultion M turns blue litmus red, so it must contain (i) hydronium ions ; another solution O turns red litmus blue and hence, must contain, (ii) hydroxide ions.
(b) When solution M and O are mixed together, the products will be (iii) salt and (iv) water.
(c) If a piece of magnesium was put into a solution M, (v) hydrogen gas would be evolved.