Sara sells aloe vera plants and barrel cacti at the local street fair. Each aloe vera plant is $3 and each barrel cactus is $2.
On Monday she sold a total of 12 plants for $31. How many of each type of plant did Sara sell?
x:# aloe vera y : # barrel cacti