Create a function that takes a list and a number as arguments and returns the index of the number in the list if it exists. Otherwise, it should return -1.
Example 1:
Input: [1, 3, 5, 7, 9], 5
Output: 2
Example 2:
Input: [2, 4, 6, 8, 10], 7
Output: -1