Question 1210397
This is not very neat and much likely not the best way, but this should work.

<pre>
          PRICE    QUANTY    COST

Apple     p+0.3     7x      7x(p+0.3)

Pear       p        4x      4x*p

Totals                      61.20
</pre>

and too, the 22.8 dollars difference
{{{system(7x(p+0.3)-4xp=22.8,7x(p+0.3)+4xp=61.2)}}}