solve problem45