Let:
x = Number of points Juan earned on the second text
n = Total number of points of each test
First, let's find the total number of points of each test using the information provided:
[tex]\begin{gathered} 0.6\cdot n=30 \\ so\colon \\ n=\frac{30}{0.6} \\ n=50 \end{gathered}[/tex]Now, we can find how many points Juan earned on the second test:
[tex]\begin{gathered} x=0.8\cdot n \\ x=0.8\cdot50 \\ x=40 \end{gathered}[/tex]Answer:
40 points