I' am currently studying for the GRE and would really appreciate it if someone could help me with a word problem. If you could show work that would be awesome.

Problem:

Pat invested a total of $3,000. Part of the money yields 10 percent interest per year, and the rest yields 8 percent interest per year. If the total yearly interest from this investment is $256, how much did pat invest at 10 percent and how much at 8 percent?