A firm has a budget of $350 to spend on the three inputs X, Y, and Z whose prices per unit are $4, $2 and $5 respectively. What combination of X, Y and Z should it employ to maximize output if it faces the production function Q= 24X0.3Y0.2Z0.3 Also calculate the maximum output of the firm.

A firm has a budget of $350 to spend on the three inputs
X, Y, and Z whose prices per unit are $4, $2 and $5 respectively. What
combination of X, Y and Z should it employ to maximize output if it
faces the production function Q= 24X0.3Y0.2Z0.3

Also calculate the maximum output of the firm.