Use the Sales Search Wizard for this.
On the Customers tab of that search wizard, start by selecting the customers as below:
When you click that Add Course Customers button you can then select the customers on the courses, as in the example below:
And:
Select All of those results and Add them to the search.
Ensure you have this setting on the Payments / Items tab of the Sales Search Wizard:
Results will include: