Optimal Monetary and Fiscal Policy: A Linear-Quadratic Approach