What is the total number of ways in which three distinct numbers in an arithmetic progression (AP) can be selected from the set 1, 2, 3, .... 24?