sub variables into patternmatch display answer