Arduino UNO R3 using two outputs dependent to different inputs

Sorry UKHeliBob,
I am quite new in the forum and Arduino Learning, I have not done deliberately, next time will take care.
Thanks for reminding me.
takecare