n9a

Buying one bag of each won't give the same amount, so let's look at some other options. Make a quick chart of bags bought compared to pieces of fruit and stop when you have a match.

bags of apples

1

2

3

number of apples

8

16

24

bags of oranges

1

2

3

4

number of oranges

6

12

18

24

Twenty-four apples and twent-four oranges is the first match. So 3 bags of apples will be bought at 3($1.45)=$4.35 and 4 bags of oranges bought at 4(1.29)=$5.16. So the total spent will be

..$4.35
+$5.16
______
..$9.51