
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 store received goods of first and second grade worth 450 rubles. An examination determined that all the goods could be sold only at the price of the second grade, resulting in a loss of 50 rubles for the company. The company rectified the defects in the first-grade goods and upgraded the second-grade goods to first-grade quality. After receiving permission to sell all the goods at the first-grade price, the store made a profit of 30 rubles. What was the initial value of all the first-grade goods and all the second-grade goods separately?

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