Deductions & credits

Thank you for your quick response.

The tax assessed for 2023 was B. However, I had an overpayment of A from 2022. Therefore, I only paid the net amount of (B - A).

In this case, can I deduct the full amount B, or just the net amount I paid, which is (B - A)?