5 XP challenge
Combine Before Multiplying
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Inputs red and blue give the two token counts in one pack. Return the total tokens across packs identical packages. All inputs are integers from 0 to 20.
Examples
| Input | Return |
|---|---|
red = 2, blue = 3, packs = 4 | 20 |
red = 0, blue = 5, packs = 2 | 10 |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.