A farmer is buying two types of feed: Type X and Type Y. Type X feed costs dollars per bag, and Type Y feed costs dollars per bag. The farmer buys a total of bags of feed and spends a total of dollars. If represents the number of bags of Type X feed and represents the number of bags of Type Y feed, which system of equations can be used to determine the number of bags of each type of feed purchased?