A farmer is planning to plant two types of crops, corn, and wheat, in his fields. He has a total of 180 acres available for planting. He wants to plant twice as many acres of corn as wheat. If the profit per acre of corn is $50 and the profit per acre of wheat is $70, how many acres of each crop should the farmer plant to maximize profit, and what will be the total profit? Let's think step by step and output the final answer within \boxed{}.
user