a. The revenue function, r(x), is given by the product of the price x and the demand function d(x):

The domain of this function is the set of possible prices that can be charged for the jeans, which is typically a positive real number, or in interval notation: (0, infinity).
b. If the price is $40, we can find the revenue by plugging in x = 40 into the revenue function:

Therefore, the company will earn $9,600 in revenue if they sell their jeans at a price of 40