He can buy 5 of the $3 nut and 1 of the $5 nuts.
5x3=15
5x1=5
15+5=20 and that’s less than 24.
So Jim can use $20 to buy the $3 one 5 times and the $5 one 1 time.
The sum of n terms is given from the first term and the common ratio by

For your given values of a1=-11, r=-4, n=8, the sum of 8 terms is

Answer:
If you want to spend no less than $40, and you want to spend twice as much on the first gift (gift x), you can spend $26 on gift x. On the second gift (gift y), you can spend $13. You will spend a total of $39 on both gifts which is less than $40 and have spend twice as much on the first gift as you did the second ($13 x 2= $26).
.020 because it is 2 spots behind the decimal