Katie invested a total of ​$4000​, part at 2​% simple interest and part at 3​% simple interest. At the end of 1​ year, the investments had earned ​$90 interest. How much was invested at each​ rate?