The perimeter of a right triangle is 24 in. find the dimensions of the triangle if the aide are all whole-number lengths.