Question 1010636
Call the number of pies each can eat, h and j.  Then we have
h = 2j - 4  and
j = h - 2
Subsitute the first into the second and get
j = 2j - 4 - 2
j = 2j - 6
-j = -6
j = 6 pies
h = 8 pies