A jar pinto beans and black beans in a ratio of 1: 1, and 300 of the beans are pinto beans. How many beans in total are there in the jar?