The ages of three men are in the ratio 3:4:5. If the difference between the…