Let x be the number of red skittles and y be the number of yellow skittles.
Sice we have a total of 58 skittles we have the equation:

We also know that the number of red skittles, that is x, is 10 more than twice the number of yellow ones, this can be express as:

Then we have the system of equations:

to determine the number of each color of skittles.