we know that
the function of the cost is equal to
Part A
For x=21 machine
substitute in the function above
C(21)=$3,105.90
therefore
The exact cost of 21st machine=$3,105.90
Part B
Use marginal cost to approximate the cost of producing the 21st machine
Remember that
The marginal cost function is the derivative of the total cost function, C(x)
so
Find out the first derivative of the function C(x)
For x=21
substitute