Methods and return values
Add the areas of the listed rectangles. Each pair lists its width and height.
Examples
Example 1
Input
(2, 3), (1, 5)
Expected output
11
Example 2
Input
(3, 3), (3, 3)
Expected output
18
Hints and solution
Hint 1
Call the area method once per rectangle.
Reveal worked answer
Multiply the width by height for each rectangle, then add the returned integers.