the test had "x" in total, thus "x" is the 100%.
now, we know she got 34, and that 34 is the 85%.
if 34 is the 85%, what is "x"?
[tex]\bf \begin{array}{ccll}
amount&\%\\
\text{\textemdash\textemdash\textemdash}&\text{\textemdash\textemdash\textemdash}\\
x&100\\
34&85
\end{array}\implies \cfrac{x}{34}=\cfrac{100}{85}\implies x=\cfrac{34\cdot 100}{85}[/tex]