MatchInputsToProblem function

Match Inputs to Problem