Jason has 34 raspberry scones and 51 blackberry scones. He wants to make as many identical bags of scones as possible. Each bag should have an equal number of raspberry scones and an equal number of blackberry scones. What is the greatest number of bags Jason can​ fill? Explain how you know.