Mapping/Left and right inverse/Inverse mapping/Exercise

Let and be sets and let

be a function. Let

be another function such that and . Show that is the inverse of .