Ms. Jones had $40 to purchase groceries. She bought 4 packs of rice and 3 boxes of granola bars. The packs of rice cost $1.09 each, and the boxes of granola bars cost $4.29 each. How much money did Ms. Jones have left after these purchases?
answer choices
$8.51

$17.23

$22.77