Xiao Ming and Xiao Liang play a game of "rock, scissors, cloth". They use the same number of stones to make records, and give each other a stone once they lose. They have played many games, each time deciding the winner. Among them, Xiao Ming won 3 times, and Xiao Liang added 9 stones, so how many games did they play in total?
小明和小亮玩"石头、剪刀、布"的游戏，两人用同样多的石子做记录，输一次就给对方一颗石子．他们做了多次游戏，每次都决出胜负，其中小明胜了3次，小亮增加了9颗石子，那么他们共做了多少次游戏？
<gadget id="calculator">9 + 3 + 3</gadget>
<output>15</output>

<result>15</result>