What is the largest sum that results when one of the arrangements of the digits 2017 is added to one of the arrangements of the digits of 2016, if none of the digitsv0, 1, or 2 can occupy the same position in both numbers?

1 answer

Since we want to maximize the sum, we want to maximize each place value of the numbers. The largest digit that can go in the thousands place is 2, so 2012 will be the number with the largest digits. Since we want to maximize the sum, we want the largest digit of the other number to go in the tens place. The largest digit that can go in the tens place is also 2, so 2012 still has the largest digits. Similarly, we place 1 in both of the units places. The number formed by the arrangement of 2017 is 2017, and the number formed by the arrangement of 2016 is 2016. Adding these numbers, we get $2012 + 2017 = \boxed{4029}$.