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