There are 386 sheep in the pasture, 18 more than twice the number of cattle, and 46 fewer horses than three times the number of cattle. How many horses are there in the pasture?
牧场有羊386头，比牛的2倍多18头，马比牛的3倍少46匹，牧场有马多少匹？
<gadget id="calculator">386 - 18</gadget>
<output>368</output>

<gadget id="calculator">368 / 2</gadget>
<output>184</output>

<gadget id="calculator">184 * 3</gadget>
<output>552</output>

<gadget id="calculator">552 - 46</gadget>
<output>506</output>

<result>506</result>