one equation could be

x=amount invested in 8%

y=amount invested in 6%

find the other equation then use elimination method to eliminate x and find y then use one of the equations to plug in y and find x

other equation is something like

which equals to:

then just use simple elimination and u shall find the answer