Invoice numbers look like INV-2024-0015. Show the year part as year (a number) with the invoice count invoices and total amount per year.
INV-2024-0015
year
invoices
amount
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.