Coin $A$ is flipped three times and coin $B$ is flipped four times. What is the probability that the number of heads obtained from flipping the two fair coins is the same? Express your answer as a fraction in simplest form, in the format \(\frac{k}{m}\). Please give the value of \(k + m\).

Let's think step by step and output the final answer within \boxed{}.
user