Bo went to the grocery store and bought bottles of soda and bottles of juice. Each bottle of soda has 50 grams of sugar and each bottle of juice has 25 grams of sugar. Bo purchased a total of 7 bottles of juice and soda which collectively contain 250 grams of sugar. Determine the number of bottles of soda purchased and the number of bottles of juice purchased.