Ms. Wilson invested ​$34000 in two​ accounts, one yielding 8​% interest and the other yielding 9​%. If she received a total of​ $2910 in interest at the end of the​ year, how much did she invest in each​ account?