I have a truth table like this:
a b sel O
F F F F
F F T F
F T F F
F T T T
T F F T
T F T F
T T F T
T T T T
so O is the output column, sel is basically a selector. So when sel = F, the O will be the value of a, and if sel= T, the O will be the value of b.
So I was able to come up with an expression (without regarding b input) that correctly matches the output of sel and a, when sel = F: a $$\lor$$ sel (for example you could check that this expression $$a v sel$$ would produce correctly all the combination of values of a, sel and O, without regarding the value of b)
And similarly for matching output of sel and b, when sel = T: $$b ^ sel$$ (for example you could check that this expression $$b ^ sel$$ would produce correctly all the combination of values of b, sel and O, without regarding the value of a)
But now I am not sure how to come up with an expression that would correctly put together $$a v sel$$ and $$b ^ sel$$ to have a final expression that matches the truth table above.