The ratio of the number of tomato plants in Inessa’s garden to the number of tomato plants in Ralph’s garden was 5 : 6. After 12 of the tomato plants from Inessa’s garden were replanted into Ralph’s garden, Ralph’s garden had 850 tomato plants. How many tomato plants did Ralph’s garden have in the first place?