let x= the number of books purchased: 7 books purchased
let y = the number of toys purchased;10 toys purchased
Equations: x+y=17
6x+11y=152 x+10=17
-6(x+y=17) y=10 -10 -10
------------
-6x-6y=-102 x=7
6x+11y=152
--------------------
0x+5y=50
---- ----
5 5