Create a query on the table containing the two fields lets say 'a' and 'b'
For the first field 'a' you can get the total by w:sum(a)
Seconfd field 'b' the total would be x:sum(b)
In the next column y:w-x
Substitute your field names for a & b, you can call w & x & y anything you like...