Neil invested a total of [math] in two accounts. After a year, one account had earned [math], while the other account had lost [math]. In total, Neil had a net gain of [math]. How much money did Neil invest in each account?
Neil invested in the account that grew by [math].
Neil invested in the account that fell by [math].