The total cost for n notebooks is 0.75n. Also, the total amount paid for the p pens is 0.55p. Adding them all up will give us an answer of, 0.75n + 0.55p.
Now, including the 6.25% tax, the total amount to be paid is, total amount = 1.0625(0.75n + 0.55p)