Ryleigh used 2/7 of her money to buy a jacket. She used $27 to buy a shirt and had ½ of her money left. How much did she have at first

(x) 2/7 - 27 = 1/2x

2x/7 - 27 = x/2
[2x/7 - x/2 = 27] (14)
4x - 7x = 378
-3x/-3 = 378/-3
x = 126