Two different natural numbers, B and 36, are in a relationship of factors and multiples. B is greater than 3 and less than 150. Find the 5th number from the right when the numbers corresponding to B are written in order from smallest to smallest.
36 [OP_LIST_GET_DIVISOR] 36 150 1 [OP_SUB] 36 [OP_LIST_ARANGE] [OP_SET_UNION] 5 [OP_LIST_MAX]
var_a = 36
list_a = []
num_sqrt = int(math.sqrt(var_a))
for i in range(1, num_sqrt+1):
    if var_a % i == 0:
        list_a.append(i)
        list_a.append(int(var_a/i))
list_a = sorted(set(list_a))
var_b = 36
var_c = 150
var_d = 1
var_e = var_c - var_d
var_f = 36
list_b = [i for i in range(var_b, var_e + 1, var_f)]
list_c = list(set(list_a) | set(list_b))
var_g = 5
list_d=list_c.copy()
list_d.sort()
var_h = list_d[-var_g]
print(int(var_h))