Warning: do not try to use the Carnot formula for the COP of
the heat pump. It does not work since the high temperature, (the
temperature of the R-22), is not constant but varies from about
0C to 60
C. Instead, write the second law and use the fact
that the generated entropy in the complete system is zero, because
everything is reversible. That will give you the low heat flow.
Then use the first law for the heat pump to find the work.