Let Wei Ling's money at first be 1 whole.
She spent $80 on a dress.
After buying the dress, she spent 1/4 of the remaining money on a bag. So she had 3/4 of the remaining money left.
She then had 3/8 of her money left.
So 3/4 of the remaining money = 3/8 of the whole.
This means the remaining money after buying the dress was: 3/8 ÷ 3/4 = 3/8 × 4/3 = 1/2 of the whole
So the $80 spent on the dress was also 1/2 of the whole.
1/2 → $80 1 whole → $80 × 2 = $160
$160