this calculates various opertations by accepting base 36 values.