Profit/Loss

Hi Friends,

I have Doubt…

ID ITEMNAME ITEMPRICE SOLD PRICE PROFIT/LOSS

1 DELL 25000 28000 +3000

2 HP 30000 29500 -500

TOTAL ITEMPRICE=55000 Profit=2500

TOTAL SOLDPRICE=57500

How To Display My profit and total…Like the above… i need a solution for the above problem and try to solve without sourcecode …