answers for first 2 probs