For this case we propose a system of equations:
x: Let the variable representing the quantity of Granny Smith apples
y: Let the variable representing the number of Gala apples
According to the statement we have:

From the first equation we have to:

replacing in the second equation:

So, Carl bought 7 Gala apples
On the other hand:

So, Carl bought 12 Granny Smith apples
Answer:
Carl bought 7 Gala apples and 12 Granny Smith apples
Step-by-step explanation:
12 - 1/2r = ( 13 - 3/2r ) - ( 1 - r )
r - 13/6 = ( 7r - 3/2 ) - ( 2/3 + 6r )
13r + 20 = ( 6r + 7 ) + ( 13 + 7r )
-12 + r = ( -8 - r ) + ( 2r - 4 )
Its equal because thousandths comes after the .
Hope this helps! :)