Given numbers are 87 and 145.
The prime factorization of 87 and 145 gives:

Here, 291 is the smallest power of the common factor 29.
Therefore, the H.C.F of these two integers = 29
31 × 51 × 291 are the greatest powers of the prime factors 3, 5 and 29 respectively involved in the given numbers.
Now, L.C.M of 87 and 145 = 3 × 5 × 29 = 435