A lemonade stand sells cups of lemonade for a fixed price. If the price of each cup is $2, and the number of cups sold is $n$, the total earnings $E$ from selling lemonade can be represented by a linear function.
What is the equation that represents the total earnings $E$ based on the number of cups sold $n$?