Selassi invested money in two accounts: a saving account that yields 4.5% simple interest and a certificate of deposit that yields 7% simple interest. The amount invested at 7% was twice the amount invested at 4.5%. How much did Selassi invest in each account if the total interest at the end of 1 year was GH¢1017.50?