David has a collection of toy soldiers. The number of infantry soldiers is represented by i and the number of cavalry soldiers is represented by c. If the total number of toy soldiers is 60, and the number of infantry soldiers is three times the number of cavalry soldiers, how many cavalry soldiers does David have?