About Mixing Frame Rates

In the case of a video with a mixture of 23.98 fps and 29.98 frame rates, it seems to be converted to 29.98 fps. Isn’t there a better way to get the frame rate to remain the same? In the past, I think I could have done it if I had orginal FPS.