This can be solved using a system of linear equations. If you let h = the price of hostas, and i = the price of ivy, then we have two equations:
12h + 2i = 74
5h + 10i = 95
These two equations represent the amount of plants bought by Sumalee and Heather, respectively, as well as how much they each spent.