Comparison of the solar cosmic ray events on May 7, 1978, and November 22, 1977