Let's use the variable R to represent the number of rulers, the variable P for the number of protractors and the variable C for the number of calculators.
If the teacher will buy twice as many rulers as protractors, we have the equation:
[tex]R=2P[/tex]Then, if the number of calculators is one quarter of the number of protractors, we have:
[tex]C=\frac{P}{4}[/tex]The total number of itens is 65, so:
[tex]R+P+C=65[/tex]Using the values of R and C, we have:
[tex]\begin{gathered} 2P+P+\frac{P}{4}=65 \\ \frac{8P+4P+P}{4}=\frac{260}{4} \\ 13P=260 \\ P=\frac{260}{13} \\ P=20 \\ \\ R=2P=2\cdot20=40 \\ C=\frac{P}{4}=\frac{20}{4}=5 \end{gathered}[/tex]So the teacher bought 20 protractors, 40 rulers and 5 calculators.