set up initial variables for problem 2
set up result to print after completing test run of calculation
checked calculations by modifying set vars