You can use Quicktime.
Open both movies. With Movie B in the foreground, select EDIT -> SELECT ALL and then EDIT -> COPY. Next, bring movie A to the foreground and go to the end of the movie. Then select EDIT -> PASTE. Finally, select FILE -> SAVE.
Done and done.