In a specific video game scenario, you are given 2,000 gold. You can either train soldiers to defend your base at 50 gold a piece or research weapon upgrades at 500 gold per upgrade. The game allows a maximum of three upgrades, and you know that you need at least 20 soldiers trained to survive the next level. Which of the following is a possible combination of the number of soldiers (s) and the number of upgrades (u) you can train/purchase in the game scenario?10 soldiers; 2 upgrades20 soldiers; 4 upgrades30 soldiers; 3 upgrades40 soldiers; 0 upgrades

Respuesta :

50s + 500u < = 2000
u < = 3
s > = 20

10 soldiers,2 upgrades....will not work because u < = 3 and s > = 20
20 soldiers,4 upgrades...will not work because u < = 3

30 soldiers,3 upgrades
50(30) + 500(3) < = 2000
1500 + 1500 < = 2000
3000 < = 2000 (nope....will not work)

40 soldiers,0 upgrades
50(40) + 500(0) < = 2000
2000 + 0 < = 2000
2000 < = 2000 (correct)

answer is : 40 soldiers and 0 upgrades