The correct option is B greater
For Alex,
Mass = 40 kg, Height of cliff = 15 m
Potential Energy = mgh = 40 x 10 x 15 = 6000 J
For Sam,
Mass = 50 kg, Height of cliff = 7 m
Potential Energy = mgh = 50 x 10 x 7 = 3500 J
Hence, Alex will have greater potential energy than Sam.