# Functions Part 3 Problem 1 Solution

- About
- Embed

Consider the following word problem from math class:

One number is five more than twice another number. Find the two numbers if their sum is 68.

a) Write a function, TimesTwoPlusFive that returns five more than twice a number given as an argument.

b) Use your function in a for loop to create a table similar to that below in order to solve the math word problem (using as much work as possible).

Num1=3 Num2=11 Sum=14

Num1=4 Num2=13 Sum=17

…

Num1=24 Num2=53 Sum=77