Answer: He invest $2500 in account with rate of interest 5% and invest $3500 in account with 6% of interest so that the total interest earned is $335.
Explanation:
Given: The rate of interest for account 1= 5%=0.05
The rate of interest for account 2= 6%=0.06
Let P be the Principal amount Keisha invested in the account with 5% interest .
Then the amount she will invest in account with 6% interest= 6000-P
Time = 1 year
The simple interest is given by:-

Simple interest for account 1=

Simple interest for account 2=

According to the question,
Total Interest =$335

So, he invest in account with 5% interest= $2500
He invest in account with 6 % interest=$6000-$2500=$3500