A vertical cylinder contains a movable frictionless piston separating the former into two portions. The two portions are filled with ideal gases