The second question is simple. Ask yourself: how many ways can one pick two different numbers from {1, 2, 3, ..., 8, 9}? How about picking 3 numbers? ... How about picking 9 numbers? Add up the answers of above, you get the answer to the original question.
The first question is equivalent to...