user: I'm working on a few probability problems for my statistics class, and I need to figure out some permutations. Could you help me calculate the number of different ways to arrange 5 books on a shelf if I have 20 books to choose from, the number of different lineups I can create with 5 players on the court when there are 12 players on the team for my basketball team project, and the number of different combinations for choosing 3 main courses from a selection of 10 on the menu for a dinner event I'm planning?

Available functions:
name: calculate_permutations
description: Calculates the number of permutations of k elements from a set of n elements.
parameters: type: dict
properties: n: type: integer
description: The number of elements in the set.
k: type: integer
description: The number of elements to choose.
required: n
k