36: First, find points at which the two functions intersect, due to periodicity it is enough to consider such a from the first period.

Directions of the two graphs at these points is given by the slopes of their tangent lines. Find these.

Next hint