To solve this problem it is necessary to apply the concepts related to the conservation of the moment and the conservation of energy.
The conservation of energy implies that potential energy is transformed into kinetic energy or vice versa, depending on the process, in this way


Where,
m = mass
v = velocity
h = height
g = gravitational acceleration
Re-arrange to find v,



Replacing with our values we have that



At this point we can find the final speed through the conservation of the momentum, that is

Here,
m = mass of the first person
M = Mass of the second person
v = Initial velocity
V = Final Velocity
Replacing,




Applying energy conservation again, but in this case using the values of the final state we have to





Therefore the maximum height that they reach after their upward swing is 1.433m