Question 1196789
<pre>
PRICE              QUANTITY          COST

8 for 96c           (3/2)n          (0.96/8)(3/2)n

6 for 102c           n               (1.02/6)n
</pre>
The cost for the first two purchases
{{{(0.96/8)(3/2)n+(1.02/6)n}}}

{{{(0.48/8)3n+0.17n}}}

{{{0.18n+0.17n}}}

{{{0.35n}}}    ---------------dollars total the two first purchases


Quantity bought, first two purchases
{{{(3/2)n+(2/2)n}}}

{{{(5/2)n}}}----------------- how many each bought, first two purchases


PRICE EACH first two purchases
{{{(0.35n)/((5/2)n)}}}

{{{0.35(2/5)}}}

{{{highlight(0.14)}}}----------THE EFFECTIVE PRICE EACH in the two first purchases


You could find the value for {{{(5/2)n}}} on the way toward answering the question, about selling those to get 50% profit.