
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
In triangle $ABC$, the sides opposite to the angles $A$, $B$, $C$ are denoted as $a$, $b$, $c$ respectively. It is known that $a\sin 2B=b\sin A$.

$(1)$ Find the value of $B$.

$(2)$ If $b=3\sqrt{2}$ and the area of $\triangle ABC$ is $\frac{3\sqrt{3}}{2}$, find the perimeter of $\triangle ABC$.

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