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) 4
B) 5
C) 6
D) 7