cody spent $144 on shirts. fancy shirts cost $23 and plain shirts cost $13. if he bought a total of 8 then how many of each kind did he buy?