Robin had 4 times as much money as Shawn at first. After spending some money, Robin realized that Shawn had twice as much as he had. If Robin had $48 at first, how much did Robin have in the end?

Robin started out with 48, so Shawn had 24

in the end, Robin had 1/2 * 24 = 12