A farmer is evaluating a crop rotation strategy to maximize the yield of two crops: corn (C) and soybeans (S). The current yield from corn is represented by the equation $$Y_C = 200C - 5C^2$$ and from soybeans by the equation $$Y_S = 150S - 3S^2$$. The farmer has a limitation of 40 acres for planting, and he plans to use a certain number of acres for corn and the remaining for soybeans. If he dedicates $$x$$ acres to corn, how many acres will he dedicate to soybeans, and what will be the total yield if he maximizes yield by determining the optimal number of acres for each crop? Find the maximum total yield.