Adapt the exercise to your class.
Find straight lines on a number grid whose numbers add up to the target sum.