Solution: 
As per the problem we have 
Matthew has a bag of green & yellow skittles. There are 38 total in the bag. 
If g = green Skittles & y = yellow Skittles, 
Then, sum of the two skittles will be equal to 38
which means 

Hence, the equation representing the given data can be written as :
Hence , option B, 
