To find the greatest number, we first subtract the remainder 2 from both numbers to get 48 and 72. We then find the highest common factor of 48 and 72 by prime factorization, giving 48 = 2^4 * 3 and 72 = 2^3 * 3^2. The highest common factor is 2^3 * 3, which equals 24. The greatest number is 24.