Royal Dutch Shell has agreed to buy BG Group for 47 billion pounds ($69.7 billion) in cash and stock, the…