First, convert 10 yuan into 100, then suppose to buy 6-corner x and 8-corner (15-X), and then make a linear equation: 6X+8( 15-X)= 100.
X= 10, then (15-x) =15-10 = 5.
That is, there are 10 hexagonal ones and 5 octagonal ones.