In the short run, the marginal cost of the first unit of output is $40, the average variable cost of producing three units of output is $32, and the marginal cost of producing the second unit of output is $32. What is the marginal cost of producing the third unit of output?