A Page Right Out of History

In the distant past, an same-named ancestor of Johnny living in Bedrock is rescued by Fred Flintstone, and soon finds himself doing Fred's chores as a way of repaying Fred.