turning multiple jQuery functions into one

i have a few jquery functions that i need to be turned into one.

// Show hidden paragraphs
$("#no678").click(function(){
    $("#imperial_number, #imperial_number2").hide();
});
$("#no678").click(function(){
    $("#metric_number, #metric_number2").show();
});

that’s what my code looks like and I have around 7 of these I need to be turned into one.

i have no clue how to move forward with this.