Neil invested a total of in two accounts. After a year, one account had lost , while the other account gained . In total, Neil lost $510. How much money did Neil invest in each account?
Neil invested in the account with loss.
Neil invested in the account with gain.

You can earn partial credit on this problem.