X is the amount they brought for shopping
Gabrel has X-4750 and Michael has X-17500
(4/7)(X-4750) = X-17500
(4/7)x - (19000/7) = X - 17500
-19000/7 = (3/7)X - 17500
-19000/7 + 17500 = (3/7)x
14785 + 5/7 = (3/7) x
(7/3)(14785 + 5/7) = x
34498 + 1/3 + 5/3 = x
x= 34500
Gabriel: 34500 - 4750=29750
Michael: 34500 - 17500 = 17000
17000/29750 = 1700/2975 = 4/7
upon dividing by 425
so yes, the answer checks
x= 34500