Ellen had 15 dollars. Meanwhile, Sam had 48 dollars but then he gave some money to Ellen. After Sam gave his money to Ellen, he had as much money as Ellen originally had. Then, Sam got 24 dollars from his brother. How much money does Sam have now?