Two buttons two functions

Hi, relative new comer here, been reading and learning for a while, am hoping for some advice on a project I currently am making, I would like to have two button inputs where button one results in output to 4 pins and button 2 will output to 2 pins, is this possible, I have my code that works for a single button for each outcome. But would really like to be able to do both and combine the functions to enable me to do more with one board to save on a board for every outcome I want

What kind of "output to 4 pins"? Please describe in detail.

And why not show us the two working codes you have now?

Steve