GiftTax

I opened a joint bank account with my daughter and transferred $40,000 from one of my accounts into it.  When I realized it would be considered a gift and above the maximum allowed, I transferred $25,000 out to a personal account of mine, leaving only $15,000 in account.  All done the same year.  Do I have to declare on my return?