It took a total of three hours for Sooyoung to walk at 2 kilometers (km) per hour when she climbed up and 4 kilometers (km) per hour when she came down the same road. Find the length of the hiking trail.
3 2 4 [OP_GCD] [OP_MUL] 2 4 [OP_GCD] 2 [OP_DIV] 2 4 [OP_GCD] 4 [OP_DIV] [OP_ADD] [OP_DIV]
var_a = 3
var_b = 2
var_c = 4
var_d = math.gcd(int(var_c), int(var_b))
var_e = var_a * var_d
var_f = 2
var_g = 4
var_h = math.gcd(int(var_g), int(var_f))
var_i = 2
var_j = var_h / var_i
var_k = 2
var_l = 4
var_m = math.gcd(int(var_l), int(var_k))
var_n = 4
var_o = var_m / var_n
var_p = var_j + var_o
var_q = var_e / var_p
print(int(var_q))