Creating an Equation From a Given Scenario