Mary and Joseph went shopping together with a total sum of $99. Mary spent twice as much as Joseph. The amount of money Joseph had left was $12 more than what he had spent. He had twice as much money left as Mary. How much did Joseph have at first?
Source: Maha Bodhi