Harry had $32. He spent all the money buying three notebooks for x dollars each and four packs of index cards for y dollars each. If Harry had bought five notebooks and five packs of index cards, he would have run short by $18. The following system of equations models this scenario:

3x + 4y = 32
5x + 5y = 50

Use the system of equations to solve for x and y.