A solution, in the context of problem solving, was to the answer, method, or course of action that resolved a problem or difficult situation.
While speaking to Keiko O'Brien in the arboretum in 2367, Data said to her, "Since your action did not produce the desired results, the only advisable solution should be to re-examine your decision making process, and look for errors." (TNG: "Data's Day")