if she went home with $8, that is 2/3rds of the money she had left since she spent 1/3rd of the remaining money.
she had $12 since spending 1/3 of $12 (or $4) leaves us with the $8 she went home with
$12 is 1/3rd of the money she started with since she spent 2/3rds of her money
if she had $36, then 2/3rds is $24. If she spent $24, she would be left with $12
She started with $36 2/3(36) = 24 36 - 24 = $12 1/3(12) = 4 12 - 4 = $8 left