After talks , Russian and Saudi energy ministers signed a five-year agreement on cooperation in the oil and gas industry .