2/5 of Zoe's money was $12 more than 2/3 of Luke's money. When Zoe gave Luke $50, both of them had the same amount of money in the end. How much did Luke have at first?