How do McEwan and Sharp share the same parents if their mother was married to a different man when Sharp was born?
In 2002, McEwan discovered that he had a brother who had been given up for adoption during the Second World War; the story became public in 2007. The brother, a bricklayer named David Sharp, was born six years earlier than McEwan, when their mother was married to a different man. Sharp has the same mother and father as McEwan but was born from an affair that occurred before they married. After her first husband was killed in combat, McEwan's mother married her lover, and Ian was born a few years later. The brothers are in regular contact and McEwan has written a foreword to Sharp's memoir.
While married to a man who would die in combat, their mother had an affair with a man (their father) she would later marry. That affair produced Sharp, and they proceeded to have another child, McEwan, following their marriage.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------
In 2002, McEwan discovered that he had a brother who had been given up for adoption during the Second World War; the story became public in 2007. The brother, a bricklayer named David Sharp, was born six years earlier than McEwan, when their mother was married to a different man. Sharp has the same mother and father as McEwan but was born from an affair that occurred before they married. After her first husband was killed in combat, McEwan's mother married her lover, and Ian was born a few years later. The brothers are in regular contact and McEwan has written a foreword to Sharp's memoir.
----------------
Answer the following query.
How do McEwan and Sharp share the same parents if their mother was married to a different man when Sharp was born?

user
While married to a man who would die in combat, their mother had an affair with a man (their father) she would later marry. That affair produced Sharp, and they proceeded to have another child, McEwan, following their marriage.
assistant