first you would have to subtract 6.50 from 28, which would get you 21.50. Next, since jan spends $4.00 on food, we subtract 4 from 21.50, giving us 17.50.
Since each ride costs $3, we divide 17.50 & 3, getting us 5.83333.
This means that she can ride at max 5 rides.