Factories A and B sent rice to stores 1 and 2. A sent 10 loads and B sent 22. Store 1 used 15 loads and store 2 used 17. It cost $200 to ship from A to 1, $350 from A to 2, $300 from B to 1, and $250 from B to 2. $ 7750 was spent. How many loads went where?

10 from A to 1
0 from A to 2
5 from B to 1
17 from B to 2
0 from A to 1
10 from A to 2
17 from B to 1
5 from B to 2
9 from A to 1
1 from A to 2
6 from B to 1
4 from Y to B
8 from A to 1
2 from A to 2
7 from B to 1
15 from B to 2

To solve this problem, let's break it down step by step:

Step 1: Calculate the total cost of shipping from A to 1, A to 2, B to 1, and B to 2.
- From A to 1: 10 loads * $200 = $2000
- From A to 2: 0 loads * $350 = $0
- From B to 1: 5 loads * $300 = $1500
- From B to 2: 17 loads * $250 = $4250
Total cost = $2000 + $0 + $1500 + $4250 = $7750

Step 2: Calculate the total loads shipped from A and B.
- From A: 10 loads
- From B: 22 loads
Total loads = 10 + 22 = 32 loads

Step 3: Subtract the loads used by stores from the total loads to find the loads that went to each store.
- Loads used by store 1: 15 loads
- Loads used by store 2: 17 loads
Loads that went to store 1 = Total loads - Loads used by store 1 = 32 - 15 = 17 loads
Loads that went to store 2 = Total loads - Loads used by store 2 = 32 - 17 = 15 loads

So, the answer is:
17 loads went from A to 1 and 15 loads went from B to 2.