Don’t know what to do

So I just got a 2001 audi a6 2.7 t 24 hrs after buying it the motor blew but where I got it put in new one 2 months go by and now transmission is leaking can’t drive with the leak but warranty won’t cover it any ideas on what I should do