See the steps under the man's explanation.