Daniela invested a total of $50,00, some in a certificate of deposit (cd) and the reminder in bonds. The amount invested in bonds was $5000 more than twice the amount she put into cd. How much did she invest in each account ?