Revise from template of 'mean' to 'solve'

Revise from template of 'mean' to 'solve'