Money Change Problem

Sir ,
When we are declaring our comparator function in this money exchange problem, we have declared that :

bool compare(int a,int b) return a<=b;

My doubt is …how we are comparing in this i.e. we are comparing money to what ? what is a and b in this case ?