A firm produces a product with labour and capital, and its production function is described by Q = 2L0.5K0.5. Suppose that the price of a person-hour of labour equals 4 and the price of a machine-hour of capital equals 1. Derive the equations for the long-run total cost curve and the long-run average cost curve.