For (i), the first thing you'll want to do is square both sides of the equation. Then you need to isolate x on one side of the equation. It pretty much is a rearranging.

For (ii), just multiply out [Math](p + \sqrt{q})(p + \sqrt{q})[/tex] and note that a product or sum of rational numbers is rational.