If the cost of the beginning work in process inventory is $59,000, direct materials cost is $349,000, direct labor cost is $215,000, and overhead cost is $318,000, and the ending work in process inventory is $54,000, calculate the cost of goods manufactured: