
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
A souvenir shop wants to purchase two types of souvenirs, A and B. With 380 yuan, the shop can buy 7 pieces of souvenir A and 8 pieces of souvenir B; alternatively, with the same amount, it can buy 10 pieces of souvenir A and 6 pieces of souvenir B.  
(1) What is the purchase price per piece for souvenirs A and B, respectively?  
(2) If the shop makes a profit of 5 yuan for each piece of souvenir A sold and 7 yuan for each piece of souvenir B sold, and plans to spend 900 yuan to buy a total of 40 pieces of souvenirs A and B, how much total profit will the shop make after selling all the souvenirs?

Present the answer in LaTex format: \boxed{Your answer}
user