**Carl bought 19 apples of 2 different varieties to make a pie. The total cost of the apples was $5.10. Granny Smith apples cost $0.25 each and Gala apples cost $0.30. each. How many of each type of apple did Carl buy?**

**Answer:**

X= number of Granny Smith apples

Y= number of Gala apples

With the given data we build and solve the following system

x+y=19

0.25x+0.3y=5.10

So we conclude that

y=7 and x=12