Mark and Martha invited six friends to dinner. They set up an elongated table and marked their seats at the ends of the table. How many different ways can they sit around the table if we know that Mark and Martha are sitting at both ends of the table?