System and method to produce liquefied natural gas using two distinct refrigeration cycles with an integral gear machine