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