Assume that Peter will invest $x
Then he will invest 1/2 x with a rate of 6% and 1/2 x with a rate of 14%
Since the rule of the interest is
P is the amount of investment
R is the rate in decimal
T is the time
For the first account
For the second account
Then the interest of each account is
Since the total interest is $500, then add I1 and I2, equate the sum by 500
Divide each side by 0.10
Then he invested in each account 5000/2 = $2500
He invested a total of $5000