A firm produces an output using capital and labor using the production technology described by f(xL; xK) = xLxK. Let w denote the price of labor and r denote the price of capital. Assume that w = $2 and r = $1. Derive the equations for the total, average and the marginal cost functions of this firm.