The school is engaged in greening, and the number of metasequoia trees planted is 40 more than that of sweet-scented osmanthus trees, and the number of metasequoia trees is 5 times more than the number of sweet-scented osmanthus trees. How many metasequoia trees and sweet-scented osmanthus trees are planted in the school?
学校搞绿化，裁种的水杉比桂花树多40棵，水杉树的棵数比桂花数的6倍还多5棵，学校栽种的水杉树和桂花树共有多少棵？
<gadget id="calculator">40 - 5</gadget>
<output>35</output>

<gadget id="calculator">6 - 1</gadget>
<output>5</output>

<gadget id="calculator">35 / 5</gadget>
<output>7</output>

<gadget id="calculator">40 + 7 + 7</gadget>
<output>54</output>

<result>54</result>