Sum of Two Equations
EasyP3Coding
Let X = 5a + 3b and Y = 7a + 4b. Return X + Y.
Example 1
- Input
- a = 1, b = 1
- Output
- 19
- Why
- X = 8, Y = 11, so X + Y = 19.
Example 2
- Input
- a = 0, b = 0
- Output
- 0
Example 3
- Input
- a = 2, b = 3
- Output
- 45
Constraints
- -10^6 <= a, b <= 10^6
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.