To answer this, you will write a system of equations to represent each scenario.
6x + y = 510       and    4x +2y = 580
Solve the first one for y and substitute it in for y in the second equation.
6x + y = 510
y = -6x +510
4x + 2(-6x +510) = 580
4x - 12x +1020 = 580
   -8x + 1020 = 580
      -1020   -1020
      -8x   = -440
      -8      -8
        x = 55
Each ounce of turkey is 55 calories, and each slice of pie is (510 - 6 x 55) 180 calories.