If the lengths of the three sides of a right triangle are whole numbers, how many such distinct non-congruent right triangles exist having one leg with a length of 24 units?
a) 5
b) 6
c) 7
d) 8