it is 18 your welcome have a good day
The answer is 18
36: 1, 2, 3, 4, 6, 9, 12, 18, 36
54: 1, 2, 3, 6, 9, 18, 27, 54