Javier invests money in two simple interest accounts. He invests three times as much in an account paying 10% as he does in an account paying 4%. If he earns $110.50 in interest in one year from both accounts combined, how much did he invest altogether?