A university student can choose one elective course for his study from two different faculties. Faculty A provides 15 courses and Faculty B provides 31 courses. How many choices are there for the student if (a) all the courses provided are different? (b) 2 courses from faculties A and B are the same?