If a total budget of $2000 is allocated between marketing and development such that the amount allocated to marketing is twice the amount allocated to development minus $300, how much is allocated to each department? Let's think step by step and output the final answer within \boxed{}.
user