Corrected the variable names

The variable names were different for the input values, so they were never assigned. The math always displayed the same value because of that.