The first case involves multiplying out the brackets and then collecting like terms. You'll be able to collect terms with a factor of root 7.

The second case involves multipling the fraction by 1 expressed as ( 4 - root 7) / (4 - root 7). The point being that the denomitor can be multiplied out to remove the surd.