The random variable X takes on the values of 2, 5, n, and 15. The probability distribution of X is shown in the following table.

X | 2 5 n 15
P(X)| 0.1 0.4 0.2 0.3

The expected value of X is 9.1. What is the value of n?