An investor has three investments which pay 4%, 5%, and 10%, respectively . He has three times as much invested at 5% than at 4% and $700 more invested at 10% than at 4% . If the total interest from the investments after 1 year is $1317, how much was invested at 5%?