Let's start by defining some variables:
Let's call "P" the number of phones sold.
Let's call "A" the number of accessories sold.
From the problem, we know that:
Kylie earns a $15 commission for every phone she sells, so the commission she earns from selling phones is 15P.
Kylie earns a $2 commission for every accessory she sells, so the commission she earns from selling accessories is 2A.
Kylie made a total of $352 in commission, so we can write the equation:
15P + 2A = 352
We also know that Kylie sold 6 more accessories than phones, so we can write:
A = P + 6
Now we can substitute the second equation into the first equation and solve for P: 15P + 2(P + 6) = 352
15P + 2P + 12 = 352
17P = 340
P = 20
So Kylie sold 20 phones. We can use the second equation to find the number of accessories sold:
A = P + 6
A = 20 + 6
A = 26