Let the initial number of coins with Q and R be a and b. Using the average formula, if the total coins increase by 50 to reach an average of 100 for 3 people, the new total is 300, making the original total 250; therefore, 50 + a + b = 250, which gives a + b = 200. After Q gives 15 coins to R, Q has a - 15 coins and R has b + 15 coins, and the problem states a - 15 = (1/3)(b + 15), so 3a - 45 = b + 15 and 3a - b = 60. Solving the system of equations by substituting b = 200 - a into the second equation gives 3a - (200 - a) = 60, resulting in 4a = 260 and a = 65; therefore, b = 135, making the ratio a : b equal to 65 : 135, which simplifies to 13 : 27.