You need some basic coding skills. So search some tutorial.
Your task is quit easy. Write this declaration outside the main function
void pay_amount (int dollars, int *twenties, int *tens, int int *fives, int *ones);
And than you need to implement it
void pay_amount (int dollars, int *twenties, int *tens, int *fives, int *ones)
{
}
How to call this function is shown in solution 2.