A certain school held a mathematics competition. For each correct question, 9 points were awarded, and for each wrong answer, 3 points were deducted. There were 10 questions in total. Xiao Ma scored 54 points. How many questions did he get wrong?
某校举行数学竞赛，每做对一道题得9分，做错一题倒扣3分，共有10道题，小马得了54分，他做错了多少题？
<gadget id="calculator">10 * 9</gadget>
<output>90</output>

<gadget id="calculator">90 - 54</gadget>
<output>36</output>

<gadget id="calculator">9 + 3</gadget>
<output>12</output>

<gadget id="calculator">36 / 12</gadget>
<output>3</output>

<result>3</result>