5 XP challenge

Combine Before Multiplying

very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve

Task
Your 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

InputReturn
red = 2, blue = 3, packs = 420
red = 0, blue = 5, packs = 210

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.