logically nothing is missing.
After returning 1$ each you owe your parents only 49 + 49 = 98
Price of the shirt is 97 and you have 1 $ with you.
$97/2 = 48.5 + $1/2 = .5 + .5 = 1 that makes $97.